Best practices for caching (nginx/fastcgi)
-
I’ve got this plugin working well, if I’m logged in to wordpress.
When browsing anonymously, the “Accept” button will not go away.
We’re using nginx with fastcgi and wp-rocket, but disabling wp-rocket didn’t make a difference.
What advice is there for configuring nginx,fastcgi,php7.0 for use with this plugin?
Thanks in advance!
fastcgi_read_timeout 300; add_header rt-Fastcgi-Cache $upstream_cache_status; fastcgi_read_timeout 300; fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m; add_header X-Cache $upstream_cache_status; fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_use_stale error timeout invalid_header http_500; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; fastcgi_cache_valid 60m; include fastcgi_params; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Best practices for caching (nginx/fastcgi)’ is closed to new replies.