Purge location (/purge/) return 404 – cant auto-purge
-
Hello,
First thanks a lot for this plugin. A really nice idea.
I configured plugin and nginx following tutorials (nginx + opcache + fast_cgi), all cache systeme work fine.
Also, the “purge cache” backend button is perfectly working (is he also calling /purge/ url ?).But, the automatic purge system dont work. And if i try to access mysite.com/purge/, nginx send back the default 404 page..
After some tests, i found that the mysite.com/purge/ is treated by the *.php* locaiton and not the ~ /purge/.
I tried to put a if (in my php locaiton block) block starting the cache_purge using nginx module depending $request_uri, but i cant use the purge cache line in my PHP block in a if block.
Really dont know what to do… Strange thing is that purge cache button is working (clear /var/run/nginx-cache well).
Thanks in advance ! And really good work again.
EDIT: just tried to access mysite.com/purge/mypage/, i have a “1” response on every url with /purge/ added. But, purge is not deleted. (/var/run/nginx-cache dont change, original url is ultra fast so no re-generation).
https://wordpress.org/plugins/nginx-helper/
- The topic ‘Purge location (/purge/) return 404 – cant auto-purge’ is closed to new replies.