Welcome! Log In Create A New Profile

Advanced

Re: Is it possible to have infinite proxy_cache_valid?

July 12, 2010 12:08PM
On Mon, Jul 12, 2010 at 02:53:55PM +0300, oren@stanzapub.com wrote:

> Hi,
> I want to be able to cache proxy responses indefinitely (until purged
> manually by me, using cache purge module).
> >From the docs it seems like proxy_cache_valid must get a number, can
> it get something to tell it to store indefinitely (until purged or
> until LRU)?
> Something like:
> proxy_cache_valid infinite;

Currently there is no way to say infinite, but you can set

proxy_cache /path/to/cache inactive=2y ...;
proxy_cache_valid 2y;


--
Igor Sysoev
http://sysoev.ru/en/

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

Is it possible to have infinite proxy_cache_valid?

oren@stanzapub.com July 12, 2010 07:58AM

Re: Is it possible to have infinite proxy_cache_valid?

Igor Sysoev July 12, 2010 12:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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