WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Varnish HTTP Purge

Automatically purge Varnish Cache when content on your site is modified.

Varnish HTTP Purge sends a PURGE request to the URL of a page or post every time it it modified. This occurs when editing, publishing, commenting or deleting an item, and when changing themes.

Varnish is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. This plugin does not install Varnish for you, nor does it configure Varnish for WordPress. It's expected you already did that on your own.

Not all pages are purged every time, depending on your Varnish configuration. When a post, page, or custom post type is edited, or a new comment is added, only the following pages will purge:

  • The front page
  • The post/page edited
  • Any categories or tags associated with the page

In addition, your entire cache will be purged on the following actions:

  • Changing themes
  • Press the 'Purge Varnish Cache' button on the dashboard
  • Press the 'Purge Varnish' button on the toolbar

Plugins can hook into the purge actions as well, to filter their own events to trigger a purge.

And if you're into WP-CLI, you can use that too: wp varnish purge

Please note: On a multisite network using subfolders, only network admins can purge the main site.

Tags: , ,

Requires: 4.0 or higher
Compatible up to: 4.7
Last Updated: 2 weeks ago
Active Installs: 40,000+

Ratings

4.5 out of 5 stars

Support

1 of 4 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
0,1,0
100,1,1
100,1,1
100,1,1 0,7,0
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,2,2 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,2,2
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,2,2
100,1,1
100,1,1 100,1,1
100,2,2
100,3,3
100,2,2
100,1,1
100,1,1
100,1,1