From c0b0c2df2e47545da32a8310f91bdf58ef01afac Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Mon, 23 Nov 2015 10:26:44 +0000 Subject: [PATCH] Added fastcgi cache purge location block --- sites-available/fastcgi-cache.com | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sites-available/fastcgi-cache.com b/sites-available/fastcgi-cache.com index 122c39a..f1a15da 100644 --- a/sites-available/fastcgi-cache.com +++ b/sites-available/fastcgi-cache.com @@ -50,6 +50,11 @@ server { # Define caching time. 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