Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Purge a single site in subfolder multisite setups #122
If your domain is setup as www.example.com/site1/, www.example.com/site2/ etc., then pressing the "Purge Cache" button on one of those sites will now only purge the cache for that site. Tested and working.
Same should be true for subdomain multisite setups.
Ps. Don't merge the readme file.
referenced this pull request
Sep 1, 2016
Thanks for the PR. I applied different solution to purge single site cache in multisite setup. It's work for both sub-domain and sub-directory site. Please check my commit c4dc90d
I haven't merge this PR as it contain more changes and for the main issue I applied different solution.
Please let me know your wordpress.org username so I can add in contributors list.
So there's still an issue if you're using domain mapping:
Lemme explain. So if Redis contains this:
.. and I'm standing in the network admin page at cloud.nuvoweb.dk/network, and press "Purge Cache", then the entire cache is deleted, including onekey and asia, which are different domains.
It should optimally look like this afterwards:
I had fixed this in this pull request, by adding a new helper action called "site", that only purges the cache for a single domain.
The interface might be confusing.
If you Purge Cache from Network Admin then it will purge all site cache in WPMU.
If you want to purge cache of individual site then goto the individual site dashboard and click on Purge Cache button.
Let me know if this make sense.