https://www.scalescale.com/tips/nginx/configure-nginx-fastcgi-cache/
se der o erro:
Testing nginx configuration: nginx: [emerg] the size 104857600 of shared memory zone "YOURAPP" conflicts with already declared size 0 in /etc/nginx/nginx.conf:78
Put include /etc/nginx/conf.d/*.conf; after the cache declaration, not before.
https://serverfault.com/questions/677820/nginx-cache-error-conflicts-wi…
depois sempre que voltava à página principal do site da escola deixava de estar logado. parece-me que seria atualizada a cache dessa página com outro pedido e um cookie diferente. a solução passa por criar pastas para cada cache dependendo da sessão. para isso temos que acrescentar o seguinte a /etc/nginx/nginx.conf:
# this section is needed to fastcgi_cache_drupal
map $http_cookie $cache_uid {
default 0;
~SESS[[:alnum:]]+=(?[[:alnum:]]+) $session_id;
}
e alterar ainda:
fastcgi_cache_key "$scheme$request_method$host$request_uri";
por:
fastcgi_cache_key "$cache_uid$scheme$request_method$host$request_uri";
https://www.drupal.org/node/2366781#comment-9298937
https://serverfault.com/questions/677820/nginx-cache-error-conflicts-wi…