Purge Cache clears the whole Redis cache, of ALL the users/prefixes... #113
When one of my users installs the Nginx Helper (we even deploy it automatically on every new Wordpress installation) and clicks the Purge Cache button in the admin bar on top, it clears the whole Redis database...
Imagine this. A 28GB Redis cache size, 800 users. One of those 800 users presses the Purge Cache button on top, and all the other 799 sites have to warm up the cache again. More than 28GB of cache data gone, every time one of those 800 users presses their button. That's a big problem.
Every site has an own prefix, "example.com:" in the Nginx config and in the Nginx Helper plugin.
Is there a way to make the Nginx Helper only purge "example.com:" from Redis when the user presses Purge Cache, in stead of ""?
My code is based on the latest master branch.
Looking through the code of #116, it doesn't seem to have fixed what you initially asked. It seems related to WPML and another non-related issue.
For example, my fix makes a multisite running in subfolders work, which the previous version did not take into account.