Proxy Cache Purge source code
By Danila Vershinin, on WordPress.org since 2011. 50,000+ active installs.
This plugin does not install nor configure a cache proxy. It acts as an interface with such services. One common method of caching content for websites is via the use of reverse proxy caching. Below is its source code for every one of its 42 releases, what changed in the latest one, and how often it ships.
What changed in 5.13.0
Released Nov 21, 2026, 1 hour after 5.12.3- New: XML sitemaps are purged when the content they list changes (Yoast SEO). Publishing, updating, unpublishing or deleting a published post purges the sitemap index, the post type sitemap and the sitemaps of the post’s taxonomies; term and user changes purge the taxonomy and author sitemaps; saving a draft purges nothing. Sitemaps can now be cached for a day or longer without going stale. Paginated sitemaps are purged with one wildcard request. Sitemap purges do not count toward the 50 URL full-purge limit and work in Cache Tags mode and with Background Purging.
- New: wp varnish purge --sitemaps purges every XML sitemap.
- New: vhp_purge_sitemaps, vhp_sitemap_purge_urls and vhp_sitemap_entries_per_page filters, and the VHP_DISABLE_SITEMAP_PURGE constant.
- New: Every PURGE response is assessed against the Cache-Purge-Result contract of nginx-module-cache-purge 2.6.1+. A tag purge counts as confirmed only when the endpoint reports the tags operation; a different operation is recorded as a mismatch and surfaced in the debug page and Site Health, because HTTP 200 alone never proves that tagged pages were invalidated.
- New: vhp_purge_result action with the assessment of each PURGE response, and vhp_purge_hosts filter to add or replace PURGE targets.
- Dev: Docker test harness gained an nginx + nginx-module-cache-purge arm (tests/nginx) so the plugin is proven against real nginx tag purges, not only Varnish.
7 files changed since 5.12.3: 6 modified, 1 added, 0 removed.
- changelog.txt modified, +1,468 bytes
- debug.php modified, +4,185 bytes
- readme.txt modified, +166 bytes
- uninstall.php modified, +51 bytes
- varnish-http-purge.php modified, +9,191 bytes
- wp-cli.php modified, +1,065 bytes
- varnish-sitemaps.php added
Release history
42 releases since April 2018- 5.13.0 Nov 21, 2026 New: XML sitemaps are purged when the content they list changes (Yoast SEO). Publishing, updating, unpublishing or deleting a published post purges the sitemap index, the post type sitemap and the sitemaps of the post’s taxonomies; term and user changes purge the taxonomy and author sitemaps; saving a draft purges nothing. Sitemaps can now be cached for a day or longer without going stale. Paginated sitemaps are purged with one wildcard request. Sitemap purges do not count toward the 50 URL full-purge limit and work in Cache Tags mode and with Background Purging.
- 5.12.3 Nov 21, 2026 Fix: Multipage posts now purge every numbered page. 5.12.1 covered pages 2..N by asking the proxy for a wildcard purge of the post URL, which did not invalidate them on the reporter’s setup. The plugin now purges the real page URLs (/your-post/2, /your-post/3, …) with the same ordinary PURGE requests that already work for page 1, so it no longer depends on the proxy handling wildcards. Reported by @didierjm.
- 5.12.2 Aug 4, 2026 Fix: “max-age=0” is no longer a Site Health error when the response proves a shared cache is serving the page. Proxies that consume “s-maxage” and strip it from the response used to make correctly cached sites look broken; cache hit indicators now downgrade the finding to a warning. Reported by @davidkoster89.
- 5.12.1 Jul 28, 2026 Fix: Updating multipage posts now purges every numbered page instead of only page 1.
- 5.12.0 Jun 24, 2026 Change: The GetPageSpeed Amplify recommendation links (readme + Check Caching results) now point to the dedicated Varnish monitoring landing page for a more relevant first impression.