Support for purging all
-
Currently the only way of purging the entire cache is by directly deleting the files from the specified path. This requires that the PHP process is running with the same user as the Nginx process, as the cache files is owned by that user with 600 permissions. This is quite often not the case, and the purge request will silently fail.
I suggest one of these solutions:
*) When requesting a purge of everything, fire a request against https://example.com/purge/*, which can then be configured in Nginx to purge everything.
*) Use an input field where the admin can specify an url to use to purge everything.
*) Implement support for the default fastcgi_cache_purge allowing wildcard purging using request “PURGE https://example.com/*” (like in their example).
- The topic ‘Support for purging all’ is closed to new replies.