return(refresh) from vcl_hit / Re: [PATCH] Add "hash_always_expire" option to treat any existing objects as expired

Dridi Boukelmoune dridi at varni.sh
Mon May 18 14:02:05 CEST 2015


Hi Nils,

Please ignore my remarks, except that 4.0 docs are incomplete. I
misread everything including the documentation,  your email and the
discussions on IRC.

I will document the return(fetch) in 4.0 though.

Cheers,
Dridi

On Mon, May 18, 2015 at 1:42 PM, Dridi Boukelmoune <dridi at varni.sh> wrote:
> Hi Nils,
>
> It's actually return(fetch) that will do that from vcl_hit. You can
> see it in the built-in VCL[1] and I'm afraid it hasn't been documented
> yet in the 4.0[2] branch, ironically it is documented but deprecated
> in the trunk[3].
>
> Cheers,
> Dridi
>
> [1] /usr/share/doc/varnish/builtin.vcl
> [2] https://www.varnish-cache.org/docs/4.0/users-guide/vcl-built-in-subs.html#vcl-hit
> [3] https://www.varnish-cache.org/docs/trunk/users-guide/vcl-built-in-subs.html#vcl-hit
>
> On Mon, May 18, 2015 at 1:33 PM, Nils Goroll <slink at schokola.de> wrote:
>> Hi Jingyi,
>>
>> this has been discussed on irc today:
>>
>> You have come up with a useful idea to allow refresh of a cache object despite a
>> cache hit, which we want to implement. We'd prefer a different implementation
>> though and will probably look in the direction of a return(refresh) from vcl_hit.
>>
>> Cheers, Nils
>>
>> _______________________________________________
>> varnish-dev mailing list
>> varnish-dev at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev



More information about the varnish-dev mailing list