Hi Arun,

On Mon, May 21, 2012 at 2:42 PM, Arun Dobriyal <[email protected]
> 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>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to