diff --git a/rootfs/etc/nginx/nginx.new b/rootfs/etc/nginx/nginx.new index 1b9af5c..1fb7feb 100644 --- a/rootfs/etc/nginx/nginx.new +++ b/rootfs/etc/nginx/nginx.new @@ -102,7 +102,7 @@ http { proxy_cache_path /var/cache/nginx/site levels=1:2 keys_zone=site_diskcached:10m max_size=5g inactive=45m use_temp_path=off; proxy_cache_path /var/cache/nginx/disk levels=1:2 keys_zone=my_diskcached:50m max_size=7g inactive=7d use_temp_path=off; - proxy_cache_key "$real_scheme$request_method$host$request_uri"; + proxy_cache_key "$pid$real_scheme$request_method$host$request_uri"; proxy_temp_path /var/cache/nginx/temp; proxy_ignore_headers Vary Expires Set-Cookie Cache-Control; proxy_pass_request_headers on; @@ -124,7 +124,7 @@ http { # create fastcgi cache defaults fastcgi_cache_use_stale updating error timeout invalid_header http_500; - fastcgi_cache_key "$real_scheme$request_method$host$request_uri"; + fastcgi_cache_key "$pid$real_scheme$request_method$host$request_uri"; # File cache settings diff --git a/rootfs/sysprepz/nginx-templates/wordpress.stpl b/rootfs/sysprepz/nginx-templates/wordpress.stpl index 0bac7b3..cd26a9d 100644 --- a/rootfs/sysprepz/nginx-templates/wordpress.stpl +++ b/rootfs/sysprepz/nginx-templates/wordpress.stpl @@ -73,10 +73,6 @@ server { fastcgi_cache_valid 200 45m; } - location ~ /purge-cache(/.*) { - fastcgi_cache_purge fpm_%domain% "$real_scheme$request_method$host$1"; - } - location ~ /\.|wp-config\.php { deny all; log_not_found off; diff --git a/rootfs/sysprepz/nginx-templates/wordpress.tpl b/rootfs/sysprepz/nginx-templates/wordpress.tpl index 185c4d9..d360581 100644 --- a/rootfs/sysprepz/nginx-templates/wordpress.tpl +++ b/rootfs/sysprepz/nginx-templates/wordpress.tpl @@ -72,10 +72,6 @@ server { fastcgi_cache_valid 200 45m; } - location ~ /purge-cache(/.*) { - fastcgi_cache_purge fpm_%domain% "$real_scheme$request_method$host$1"; - } - location ~ /\.|wp-config\.php { deny all; log_not_found off;