JeffCleverley / NginxFastCGICachePurger

or the Nginx Helper Plugin Helper Plugin :P
GNU General Public License v2.0
22 stars 3 forks source link

nginx: [emerg] invalid parameter "purge_all" #3

Open szabyka opened 2 years ago

szabyka commented 2 years ago

When I try to save:

location ~ /purgeall { fastcgi_pass localhost:8001; fastcgi_cache xyz.com; fastcgi_cache_key $uri$is_args$args; fastcgi_cache_purge PURGE purge_all from 127.0.0.1; }

Failed to save configuration file : Configuration is invalid : nginx: [emerg] invalid parameter "purge_all", expected "from" keyword in /etc/nginx/sites-enabled/xyz.com.conf:49 nginx: configuration file /etc/nginx/nginx.conf test failed

nginx version: nginx/1.14.1

Has anyone had the same issue?

gnif commented 1 year ago

You are using the wrong version of the cache purge module, read the README.md See: https://github.com/torden/ngx_cache_purge