Welcome! Log In Create A New Profile

Advanced

Re: How to set the minimum size of the cache file

Ryan Malayter
April 13, 2010 08:48AM
On Tue, Apr 13, 2010 at 4:18 AM, Yahwist Yang <lists@ruby-forum.com> wrote:
>> Currently there is no way.
>> Could you tell why do you want to set this limit ?
>
> Hi Igor,
> I have the same question.
> nginx is my reverse proxy cache servers, web page nginx cached was
> generated by backend php program, sometime when php fetch data from db
> server failed, it will generate the wrong page.
> the wrong page's size always much smaller than the right page. if I can
> set the minimum size of the cache file, nginx will not cache the wrong
> page.
>
> thaks a lot.
>
>
>
>                     yangchunyu

If something went wrong, shouldn't your PHP be generating a 50x error
code? Nginx doesn't cache these by default.

A webapplications that returns a 20X code on error are the bane of my
existence at the moment. Do you control the back-end PHP code at all?
--
RPM

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

How to set the minimum size of the cache file

Chancey September 16, 2009 01:16AM

Re: How to set the minimum size of the cache file

Igor Sysoev September 16, 2009 05:16AM

Re: How to set the minimum size of the cache file

Yahwist Yang April 13, 2010 05:24AM

Re: How to set the minimum size of the cache file

Ryan Malayter April 13, 2010 08:48AM

Re: How to set the minimum size of the cache file

Yahwist Yang April 14, 2010 07:06AM

Re: How to set the minimum size of the cache file

Ryan Malayter April 13, 2010 08:52AM

Re: Re: How to set the minimum size of the cache file

Chancey September 16, 2009 06:02AM

Re: Re: How to set the minimum size of the cache file

Mirosław Jaworski September 16, 2009 06:42AM

Re: Re: Re: How to set the minimum size of the cache file

Chancey September 16, 2009 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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