Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: FastCGI Cache /purge/ resulting in 404 and no catch purging

$
0
0
I'm unable to edit my original post, but the contents of the bottom .conf file had a missing } that I accidentally removed while formatting this post. It should read:

# inside hhvm.conf
location ~ \.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_cache FCGICACHE;
fastcgi_cache_valid 200 302 1h;
fastcgi_cache_valid 301 1h;
fastcgi_cache_valid any 1h;
fastcgi_cache_min_uses 2;
add_header X-FastCGI-Cached $upstream_cache_status;
}

location ~ /purge(/.*) {
fastcgi_cache_purge FCGICACHE $scheme$request_method$host$request_uri;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>