How to set the minimum size of the cache file
malayter at gmail.com
Tue Apr 13 16:43:37 MSD 2010
On Tue, Apr 13, 2010 at 4:18 AM, Yahwist Yang <lists at 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
> thaks a lot.
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?
More information about the nginx