nginx page cache w3tc?
-
Is it worth having nginx page cache also enable with w3tc page cache?
This is my nginx cache config in nginx.conf:fastcgi_cache_key $scheme$host$request_uri$request_method; fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:5m max_size=1000m inactive=60m; fastcgi_cache_use_stale error timeout invalid_header http_500;and this is in every php location declaration
set $no_cache 0; # POST requests and urls with a query string should always go to PHP if ($request_method = POST) { set $no_cache 1; } if ($query_string != "") { set $no_cache 1; } # Don't cache uris containing the following segments if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.ph$ set $no_cache 1; } # Don't use the cache for logged in users or recent commenters if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") { set $no_cache 1; } # Bypass cache if flag is set fastcgi_no_cache $no_cache; fastcgi_cache_bypass $no_cache; fastcgi_cache microcache; fastcgi_cache_valid 200 301 302 10m;
The topic ‘nginx page cache w3tc?’ is closed to new replies.