FabioCesar
Member
Hello,
I am using the following structure: nginx + php-fpm + xcache
Have a satisfactory outcome, but I would take more server resources only for registered users, my intention is to store the cache for visitors leaving the server under load.
I'm using these settings in nginx:
My problem is at login time, even "logged" nginx keeps sending the cache.
Can someone give me a hand?
I am using the following structure: nginx + php-fpm + xcache
Have a satisfactory outcome, but I would take more server resources only for registered users, my intention is to store the cache for visitors leaving the server under load.
I'm using these settings in nginx:
fastcgi_cache_path /tmp/fastcgicache levels=1:2
keys_zone=MYCACHE2:5m inactive=2h max_size=1g loader_files=1000
loader_threshold=2000;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
set $no_cache 0;
if ($http_cookie ~* (xf_session_admin|xf_user|xf_user_admin)) {
set $no_cache 1;
}
fastcgi_cache MYCACHE2;
fastcgi_keep_conn on;
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;
fastcgi_cache_valid 200 301 10m;
fastcgi_cache_valid 302 5m;
fastcgi_cache_valid 404 1m;
fastcgi_cache_use_stale error timeout invalid_header updating http_500;
fastcgi_ignore_headers Cache-Control Expires;
expires epoch;
fastcgi_cache_lock on;
My problem is at login time, even "logged" nginx keeps sending the cache.
Can someone give me a hand?