Added fastcgi cache purge location block

This commit is contained in:
Ashley Rich 2015-11-23 10:26:44 +00:00
parent 88e438e56a
commit c0b0c2df2e

View File

@ -50,6 +50,11 @@ server {
# Define caching time. # Define caching time.
fastcgi_cache_valid 60m; fastcgi_cache_valid 60m;
} }
# Uncomment if using the fastcgi_cache_purge module and Nginx Helper plugin (https://wordpress.org/plugins/nginx-helper/)
# location ~ /purge(/.*) {
# fastcgi_cache_purge fastcgi-cache.com "$scheme$request_method$host$1";
# }
} }
# Redirect www to non-www # Redirect www to non-www