perbu at varnish-software
May 21, 2012, 9:37 AM
Post #2 of 3
On Mon, May 21, 2012 at 2:42 PM, Arun Dobriyal <arundobriyaliitkgp [at] gmail
> Is it possible to smehow fire multiple queries to the varnish cache
> depending on the output of the cache hit or miss of a
> url. So, if a particular url is not present in the cache, I want to modify
> this url to create a new url.
> Then I want to do a lookup using the new url, to see if this new url is in
> the cache or not.
That is doable.
Take https://www.varnish-cache.org/trac/wiki/VCLExampleRestarts and modify
it. You probably want to trigger the restarts in vcl_miss instead. If you
reach it you've missed the cache, then just alter the URL and restart.
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <http://www.varnish-software.com/whitepapers> |