Ben W

Varnish Cache Purge Plugin (to download, that is)

Vote 0 Votes

Regarding this very topic I started the other day I've made my own Varnish cache purge plugin in the last two days. As the name might hint at, it purges modified entries / invalidates them from a Varnish caching server. Hooray for incredible web site loading speeds thanks to caching with up-do-date pages at the same time! This is not only extremely useful for regularly updated blogs, but also for those sites that use MT's internal commenting system.

Installation

That's it. I hope. Well, it has some configuration paremters in the system wide plugin settings, but they're pointing to default values. You might want to check setting the password, though, if you have set up one for Varnish.

Requirements


  • You'll need a server running Varnish, of course

  • Tested on MT5

  • Not a requirement, but speeds are almost ridiculous in combination with nginx (~60ms TTFB both cold and warm start) - this is high availability territorium

Known limitations / caveats


  • Not tested on MultiBlogs setups, but it should still work out of the box

  • Although any static publishing event (aka synchronous rebuilding) triggers this nifty plugin, queue publishing doesn't, and I don't know why (build_file is only being called when publishing statically, so make sure everything important is set up as this)

  • There's no more support than via this forum (except as a professional service, of course). Also, this plugin is only being developed as much as I need it (and it works perfectly for me already)

Download
Varnish Cache Purge Plugin 1.0.0

Important stuff: Being provided as is bla bla, it's GPL etc., so you are more than welcome to make something even more cool from it.

Oh, and seriously, I think this plugin could give MT a huge boost in corporate high availability environments where sweet spots of caching and fresh content matter. If only Boing Boing knew.

Reported on Movable Type 5

8 Replies

| Add a Reply

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012