Welcome! Log In Create A New Profile

Advanced

Re: Proxy cache max size

June 30, 2012 03:22AM
Hmm this presents a rather large issue for me.

Is it possible to get the upstream response size in lua and set a variable
to influence proxy_no_cache? If it is ill learn lua.

On Fri, Jun 29, 2012 at 11:55 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Jun 29, 2012 at 11:28:08PM +1000, mat999@gmail.com wrote:
>
> > I have a question. If the file being written to a cache exceeds max size
> what behavior happens? As I can think of it there are 3 possible outcomes.
> >
> > 1. File is written and later cleaned up by the cache manager (bad)
> > 2. File isnt written. It is recognized that it can't be cached.
> > 3. The file is written and truncated (bad)
> >
> > Thanks
>
> The file is written, and later cleaned up by the cache manager.
>
> It might even be used for a while to serve requests, as it takes
> some time (up to 10 seconds) for the cache manager to recognize
> the max_size limit was exceeded and least recently used files
> should be removed from the cache.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy cache max size

splitice June 29, 2012 09:30AM

Re: Proxy cache max size

Maxim Dounin June 29, 2012 09:56AM

Re: Proxy cache max size

splitice June 30, 2012 03:22AM

Re: Proxy cache max size

Brian Akins June 30, 2012 12:12PM

Re: Proxy cache max size

splitice July 01, 2012 12:58PM

Re: Proxy cache max size

Maxim Dounin July 02, 2012 05:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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