Skip to content

Instantly share code, notes, and snippets.

View boina-n's full-sized avatar

Nadjmou BOINA boina-n

  • Genopsys
  • Anywhere
  • 09:21 (UTC +04:00)
View GitHub Profile
@boina-n
boina-n / readme.md
Created April 7, 2024 18:13 — forked from edisoncosta/readme.md
woo-commerce fastcgi-cache session-conflict solution (attempt)

You can jump to code directly

How it works?

1. Cache product pages

Following line does't have /products.* page. This tells Nginx to cache all product pages by default.

Idea is fast loading product pages will improve scalability of a store and also conversion.

@boina-n
boina-n / php-pools.md
Created April 17, 2024 02:04 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
#!/bin/bash
# ------------------------------------------------------------------------------
# docker_env.sh
#
# This script securely loads environment variables from Google Secret Manager,
# exports them to the local shell, and generates a .env file from a .env.dist
# template using envsubst.
#
# - Secrets are never printed to the console.
# - .env is created safely with only non-empty, non-commented variables.