manually refreshing varnish cache

Mattias Geniar mattias at
Sun Aug 14 13:28:50 CEST 2011

> The challenge (not really a hard one mind you) would be to regularly
update the 
> cache in said standby varnish server at scheduled intervals so that
the stale cache 
> is not so far out of date when / if I do need to flip that DNS switch.
> If anyone has dealt with this scenario specifically ,or just with
crawling varnish in 
> general, I'd like to hear anyone's thoughts!

Hi Kevin,

You may want to look into the "varnishreplay" command:
You could restart your Varnish on the standby side, run varnishreplay to
cache all the URLs you want with a TTL of > 1 day to keep it in cache.


More information about the varnish-misc mailing list