Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
remove cache purge because it's only available for premium, add pid t…
Browse files Browse the repository at this point in the history
…o key allowing for cache reset on reboot
  • Loading branch information
noogen committed Apr 25, 2019
1 parent a7c8b1c commit c92bd50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/nginx/nginx.new
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions rootfs/sysprepz/nginx-templates/wordpress.stpl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions rootfs/sysprepz/nginx-templates/wordpress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c92bd50

Please sign in to comment.