Modification to url lookup

Per Buer perbu at varnish-software.com
Mon May 21 18:37:42 CEST 2012


Hi Arun,

On Mon, May 21, 2012 at 2:42 PM, Arun Dobriyal <arundobriyaliitkgp at gmail.com
> wrote:

> Hi,
> 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.


-- 
Per Buer
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> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120521/68d1786f/attachment.html>


More information about the varnish-misc mailing list