Upgrade v3 -> v4 req.grace in vcl_recv
Per Buer
perbu at varnish-software.com
Tue May 6 12:27:41 CEST 2014
Yes. req.grace is gone.
The docs need an update. Have a look at the builtin VCL (vcl_hit) and
you'll see how it works.
2014-05-06 11:45 GMT+02:00 Giuseppe Pascarella <g.pascarella at sportnetwork.it
>:
> I just want the grace mechanism to work.
> So I need to skip at all the check in vcl_recv?
>
> if (!std.healthy(req.backend_hint)) {
> set req.grace = 10m;
> } else {
> set req.grace = 2m;
> }
>
> As reported in
> https://www.varnish-cache.org/docs/trunk/users-guide/vcl-grace.html "in
> order to enable Varnish to actually serve the stale object we *must* enable
> this on the request".
>
> --
> Giuseppe Pascarella
> Chief Technology Officer @ Divisione Multimedia
> Sport Network SRL
> t: +39.06.49.246.423
> m: +39.338.733.61.93
>
> Ai sensi della legge 196/2003, si precisa che le informazioni
> contenute in questo messaggio e nei suoi eventuali allegati sono
> riservate e per uso esclusivo del destinatario. Nessuno, all'infuori
> dello stesso deve copiare o distribuire il messaggio o parte di esso a
> terzi. Chiunque riceva questo messaggio per errore è pregato di
> informare immediatamente il mittente e distruggerlo.
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
--
<http://www.varnish-software.com/> *Per Buer*
CTO | Varnish Software
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!
Winner of the Red Herring Top 100 Global Award 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20140506/55ece2a3/attachment.html>
More information about the varnish-misc
mailing list