From 3f52323dca0529bbeed50b7941a2c0ce8eb3cdfb Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Wed, 11 Apr 2018 09:00:27 +0100 Subject: [PATCH] Update fastcgi_cache_use_stale directive --- global/server/fastcgi-cache.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global/server/fastcgi-cache.conf b/global/server/fastcgi-cache.conf index e4fa711..14d0d7f 100644 --- a/global/server/fastcgi-cache.conf +++ b/global/server/fastcgi-cache.conf @@ -3,7 +3,7 @@ fastcgi_cache_key "$scheme$request_method$host$request_uri"; # If an error occurs when communicating with FastCGI server, return cached content. # Useful for serving cached content if the PHP process dies or timeouts. -fastcgi_cache_use_stale error timeout invalid_header http_500; +fastcgi_cache_use_stale error timeout updating invalid_header http_500; # Allow caching of requests which contain the following headers. fastcgi_ignore_headers Cache-Control Expires Set-Cookie; @@ -31,4 +31,4 @@ if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php # 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 $skip_cache 1; -} \ No newline at end of file +}