[wp-hackers] Varnish and WordPress
Joseph Scott
joseph at randomnetworks.com
Thu Aug 2 20:45:03 GMT 2007
On Aug 2, 2007, at 2:32 PM, Joseph Scott wrote:
> On Aug 2, 2007, at 1:25 PM, Demitrious S. Kelly wrote:
>
>> To the best of my knowledge varnish does not work as a content
>> accelerator with wordpress. Because of the flow of information
>> through
>> wordpress blogs (last-in-first-out) the entire blog (or at least very
>> large chunks of it) would need to be invalidated for every
>> add/edit/delete action. Because of the mutable URI structure of
>> wordpress it difficult to generate a complete list of URI/URLs that
>> might have changed because of a given action. This, mixed with the
>> fact
>> that (afaik) varnish does not allow wild card invalidations, only
>> specific URI/URL invalidations, makes varnish less than ideal as a
>> content accelerator for WP. We're working on a project called WPCP
>> which
>> should alleviate this problem for very large shops for whom wp-
>> cache is
>> too unruly. For now, wp-cache is still your safest bet.
>
>
> Purging (invalidation) is one of the nice features of Varnish. The
> FAQ (http://varnish.projects.linpro.no/wiki/FAQ) shows how to purge
> using the command line tool and via HTTP. They use regexs so you
> can purge as much or as little of the cache as you want.
As Demitrious is sure to mention in a minute, the wild card
invalidation doesn't currently work via HTTP.
--
Joseph Scott
http://joseph.randomnetworks.com/
More information about the wp-hackers
mailing list