Varnish WordPress - A cache plugin for WordPress

Improve Your WordPress Performance

This plugin will purge the cache on:
  • Post changes (new, edit, trash, delete)
  • Page changes (add, edit, remove)
  • Comment changes (add, edit, approve, unapprove, spam, trash, delete)
  • Theme changes

Installation

To install the WordPress plugin:
  1. Get the latest version from here.
  2. Copy the varnish-wordpress folder to wp-content/plugins/
  3. Login to wp-admin
  4. Go to Plugins->Installed Plugins on the left menu
  5. Under "Varnish WordPress" click "Activate"
  6. You should now see the varnish menu under "Settings"
To install the varnish VCL:
  1. Copy the file "default.vcl" provided with this plugin to your varnish installation path (/etc/varnish/default.vcl on most systems)
  2. Configure the backend in the default.vcl to point to the IP and port your webserver(s) are running on
  3. Restart varnish
To configure the WordPress plugin:
  1. In the varnish backends box input the backends we need to access to purge the cache. (Format: ip:port)
  2. Check the enabled box
  3. Click Save

Frequently Asked Questions

Q: Can it support SSL?

A: Varnish does not support SSL however you can use another webserver to terminate the SSL and forward HTTP traffic to varnish, such as nginx and use the hash_data to include the X-Forwarded-Port...

Contact Us