[Product-Developers] Purge Varnish cache from control panel

Wichert Akkerman wichert at wiggy.net
Tue Mar 31 09:48:56 UTC 2009


Previously Espen Moe-Nilssen wrote:
> This is not really something I know a lot about, but I thought  
> CacheFu is where/what you should look at:
> 
> /portal_cache_settings
> 
> 
> gives med the option to clear the cache.
> 
> I thinkt this works quite OK (although I have only used it with squid)

It is also vastly inefficient: varnish allows you to expire the entire
cache using a single command which takes not time at all to complete.
The portal_cache_settings option iterates over all objects in your site
and generates PURGE requests for all views of all objects. As you can
imagine that is a very, possibly extremely, slow operation.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.




More information about the Product-Developers mailing list