Re: fastcgi cache use stale "updating" — improvement suggestion
Maxim Dounin
mdounin at mdounin.ru
Wed Sep 10 17:01:30 UTC 2014
Hello!
On Wed, Sep 10, 2014 at 10:21:18AM -0400, nanochelandro wrote:
> Hello All,
>
> fastcgi_cache_use_stale is awesome, especially with "updating" parameter.
> But I have a feeling that it lacks a complementary parameter (or a separate
> setting to tune "updating" behaviour) that would instruct nginx to quickly
> return stale cached response also on first request (while fastcgi app is
> busy doing it's hard work). Currently existing behaviour is to return stale
> cached responses on consequent requests only, but first response is delayed
> until fastcgi finishes it's job.
>
> What do you think?
As of now, nginx needs a client request to be able to request a
resource from a backend and to save it to the cache. That is,
this behaviour is an implementation detail which isn't trivial to
change.
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list