Welcome! Log In Create A New Profile

Advanced

Re: cache purge

Johan Bergström
November 17, 2009 02:56AM
Hey,
while you're patching - please update the example as well. We found (a while ago, sorry for not letting you know) that since location matches "omits" args from $1, we need to add it again. proper example should be:
location ~ /purge(/.*) {
allow 127.0.0.1;
deny all;
proxy_cache_purge tmpcache $1$is_args$args;
}

On 17 nov 2009, at 08.23, Piotr Sikora wrote:

>> One of my developers did the patch manually and she might have introduced some bugs during the process.
>
> I doubt that she introduced any, because patch for nginx-0.8.8 applies cleanly (without any modifications) against latest nginx.
>
> Anyway, this "bug" you were seeing appeared when original patch was applied against nginx-0.8.11 or newer (long story short: r->cache->body_start was never set and nginx tried to read 0 bytes). This is fixed now.
>
>> Would it be easier to make it a standalone module rather than a patch for users?
>
> It was created as a patch, because we (Johan Bergstr?m from yo.se, who funded this patch and me) hoped that it would be imported to nginx's base someday.
>
>> I'm waiting for your new patch to the latest nginx and I'll test it out and report back.
>
> Patch against nginx-0.8.26 is available at:
> http://labs.frickle.com/nginx_cache_purge/
>
> In the future, please report when you find bugs ;)
>
> Best regards,
> Piotr Sikora < piotr.sikora@frickle.com >
>
>
Subject Author Posted

cache purge

冉兵 November 16, 2009 10:40PM

Re: cache purge

Piotr Sikora November 17, 2009 12:12AM

Re: cache purge

冉兵 November 17, 2009 01:22AM

Re: cache purge

Piotr Sikora November 17, 2009 02:26AM

Re: cache purge

Johan Bergström November 17, 2009 02:56AM

Re: cache purge

Piotr Sikora November 17, 2009 03:30AM

Re: cache purge

冉兵 November 17, 2009 04:52AM

Re: cache purge

冉兵 November 17, 2009 02:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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