This plugin uses WordPress + Varnish and caches the sidebar with ESI.
|Author:||Chris Davies (profile at wordpress.org)|
|WordPress version required:||2.6|
|WordPress version tested:||3.3.2|
|Added to WordPress repository:||10-01-2012|
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|Total downloads:||1 164|
Click to start download
This plugin uses Varnish and ESI to cache the sidebar separately from the page and aggressively uses Purges so that you can set long expire times without worrying about comments and post edits not showing up immediately.
I did a presentation on the methodology behind this which explains how the plugin works. Blog Post
Should you use this?
If you're on a Virtual server, it is likely that you won't be able to install Varnish or run your site behind it. If you are able to run Varnish, the use case for this plugin is a little different than WordPress-Varnish.
If you are trying to cache your site where your visitors are hitting one or two pages and you don't get many comments, WordPress-Varnish will result in faster pageloads.
If your site is dynamic and you receive a lot of comments, or, your visitors are likely to surf multiple pages rather than a single landing page, using ESI will probably provide enough benefit to make the plugin worthwhile for you.
Image used under Creative Commons License from Varnish Software.
Configure the plugin with the IP address(s) or Hostname(s) of your Varnish Servers. You'll need to make sure your VCL allows the server to purge.
Move the ESI Widget to the sidebar, populate the ESI Widget Sidebar with the Widgets you want displayed.
Why is this approach better than other caching systems?
The worst queries in WordPress are usually contained within the sidebar. If
your content is engaging and someone browses from one page to the next,
most caching plugins need to generate the page and sidebar on a fresh visit.
Since this plugin caches the sidebar separately using ESI, the only
queries executed on the second and successive pages is the page content –
not the sidebar.
What Plugins break with this?
Any plugin that requires the page to load and not be served from cache
will break. Since your page might be served from Varnish, it will never
hit the backend server. Statistics plugins are generally affected, but
Google Analytics and Pikwik do work properly. Banner ad solutions also
depending on a pageload.
WP Greet Box and WP Post Views are known to break with caching.
- updated VCL to actually parse for ESI
- fixed ESI handler path
- Initial release