feature request cache refresh

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jan 20 11:50:08 CET 2010

In message <4B56DDDD.2020206 at gmail.com>, Rob S writes:
>Poul-Henning Kamp wrote:

> > I'm not sure if it's best to have
> > a parameter to vary the behaviour of 'grace', or to have an additional
> > parameter for "max age of stale content to serve".

That is why grace is split in two.

You have obj.grace and req.grace, and the minimum of the two is what
governs grace mode.

>If grace stays as it is, then I'd like to have the ability for that 
>"first client who requests content after expiry" to get stale content, 
>and have a parallel process update the cached content.

Yes, and since it is my birthday, I'll wish for a pony as well :-)

Doing grace the way we did was relatively simple, doing it the way
it really should work is not, so that improvement is somewhere in
the queue.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list