diff --git a/etc/nginx/conf.d/fastcgi.conf b/etc/nginx/conf.d/fastcgi.conf index 73885ab5..fba35dfd 100644 --- a/etc/nginx/conf.d/fastcgi.conf +++ b/etc/nginx/conf.d/fastcgi.conf @@ -2,7 +2,8 @@ fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; -fastcgi_cache_use_stale error timeout invalid_header http_500; +fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503; +fastcgi_cache_valid any 1h; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; diff --git a/usr/share/easyengine/nginx/wp/wpfc.conf b/usr/share/easyengine/nginx/wp/wpfc.conf index b5d3dca8..05f74d1d 100644 --- a/usr/share/easyengine/nginx/wp/wpfc.conf +++ b/usr/share/easyengine/nginx/wp/wpfc.conf @@ -48,7 +48,6 @@ server { fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; - fastcgi_cache_valid 60m; } location ~ /purge(/.*) { diff --git a/usr/share/easyengine/nginx/wpsubdir/wpfc.conf b/usr/share/easyengine/nginx/wpsubdir/wpfc.conf index 71650a5b..f65a442f 100644 --- a/usr/share/easyengine/nginx/wpsubdir/wpfc.conf +++ b/usr/share/easyengine/nginx/wpsubdir/wpfc.conf @@ -62,7 +62,6 @@ server { fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; - fastcgi_cache_valid 60m; } location ~ /purge(/.*) { diff --git a/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf b/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf index 3ab2df72..eda31399 100644 --- a/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf +++ b/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf @@ -50,7 +50,6 @@ server { fastcgi_no_cache $skip_cache; fastcgi_cache WORDPRESS; - fastcgi_cache_valid 60m; } location ~ /purge(/.*) {