Welcome! Log In Create A New Profile

Advanced

Re: *_cache_revalidate directives

Roman Arutyunyan
July 09, 2015 04:34AM
Hello,

> On 09 Jul 2015, at 10:59, Alt <nginx-forum@nginx.us> wrote:
>
> Hello Roman,
>
> Thanks for the explanation.
> At which moment this revalidation is executed? When there's a new client
> request or is it done automatically when a cache entry is about to expire?

When there’s a client request.
Nginx does not do any background cache updates/revalidations/etc.

> The nginx's cache manager is deleting expiring cache file, so I'm not sure
> to understand how it all works.

Nginx cache manager has nothing to do with cache entry expiration.
In fact, it does 2 things:

* deletes files which were not accessed for the “inactive” time
* deletes old files to keep cache within “max_size”

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path

--
Roman Arutyunyan



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

*_cache_revalidate directives

Alt July 08, 2015 09:43PM

Re: *_cache_revalidate directives

Roman Arutyunyan July 09, 2015 03:32AM

Re: *_cache_revalidate directives

Alt July 09, 2015 03:59AM

Re: *_cache_revalidate directives

Roman Arutyunyan July 09, 2015 04:34AM

Re: *_cache_revalidate directives

Alt July 10, 2015 07:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 244
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