Если нет денег на платную версию nginx, то можно сделать примерно следующее:
if ($http_purgecache = 1){
set $skip_cache 1;
set $skip_cache_save 0;
}
#В секции обрботки php
#cache
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache_save;
fastcgi_cache WORDPRESS;
fastcgi_cache_valid 1m;
location ~ /purgecache(/.*) {
proxy_set_header purgecache 1;
proxy_set_header Host $host;
proxy_pass $scheme://IP:PORT$1;
# fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1";
}