Maxim Dounin
September 10, 2009 11:48AM
Hello!

On Thu, Sep 10, 2009 at 05:06:26PM +0200, s0cke@leech.it wrote:

> Hi,
>
> what is the difference between the proxy_cache_valid directive and the
> "inactive" parameter of the proxy_cache_path directive?
> When I set "proxy_cache_valid 10m;" and "inactive=1h", how long will the
> request be stored?
> And what about the controverse: "proxy_cache_valid 200 1h;" and
> "inactive=10m"?

Directive proxy_cache_valid specifies how long response will be
considered valid (and will be returned without any requests to
backend). After this time response will be considered "stale" and
either won't be returned or will be depending on
proxy_cache_use_stale setting.

Argument "inactive" of proxy_cache_path specifies how long
response will be stored in cache after last use. Note that even
stale responses will be considered recently used if there are
requests to them.

> For some reason my cache still contains a file, that has been deleted on
> my backend 10 hours ago. Both, proxy_cache_valid and inactive= are set
> to 2h. Maybe the two settings have different meanings and I do not
> understand yet.

Which version? From the description it looks like a bug fixed in
0.8.14:

*) Bugfix: an expired cached response might stick in the "UPDATING"
state.

If you see this in 0.8.14 - please provide more details.

Maxim Dounin
Subject Author Posted

question about proxy_cache_valid

Anonymous User September 10, 2009 11:08AM

Re: question about proxy_cache_valid

Maxim Dounin September 10, 2009 11:48AM

Re: question about proxy_cache_valid

Anonymous User September 10, 2009 12:44PM

Re: question about proxy_cache_valid

Maxim Dounin September 10, 2009 02:00PM

Re: question about proxy_cache_valid

Anonymous User September 11, 2009 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready