Browse Source

Tweaks Fastcgi Cache

old-stable
Mitesh Shah 11 years ago
parent
commit
9bb23a3262
  1. 3
      etc/nginx/conf.d/fastcgi.conf
  2. 1
      usr/share/easyengine/nginx/wp/wpfc.conf
  3. 1
      usr/share/easyengine/nginx/wpsubdir/wpfc.conf
  4. 1
      usr/share/easyengine/nginx/wpsubdomain/wpfc.conf

3
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;

1
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(/.*) {

1
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(/.*) {

1
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(/.*) {

Loading…
Cancel
Save