Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora
March 14, 2010 12:22PM
Hi,

> location ~ /purge(/.*) {
> allow 127.0.0.1;
> deny all;
> proxy_cache_purge tmpcache "$scheme://$host$1";
> }

> http://www.mysite.com/test-2/2220
> http://www.mysite.com/purge/test-2/2220 won't do anything, just getting a
> 404.
>
> GET /test-2/2220 upstream_cache_status HIT
> GET /purge/test-2/2220 upstream_cache_status -

Just to make sure: are you requesting purges from localhost (127.0.0.1)?

> Piotr - is there any way to get proxy_cache_purge to log its activity? I
> am not sure it is even working, although I do not get any error message
> when restarting NGINX.

At this time it only logs successful purges at http debug level and failures
to delete files from hard disk at critical level.

> It seems that I keep getting upstream_cache_status UPDATING
> Does that mean the purging is scheduled somehow?

No, this has nothing to do with ngx_cache_purge.

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >



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

proxy_cache_purge for nginx/0.8.34

skynet March 08, 2010 01:17AM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 08, 2010 07:20AM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 14, 2010 01:44AM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 14, 2010 01:47AM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 14, 2010 01:52AM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 14, 2010 12:22PM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 14, 2010 01:28PM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 14, 2010 06:58PM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 14, 2010 08:58PM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 15, 2010 12:38AM

Re: proxy_cache_purge for nginx/0.8.34

skynet March 15, 2010 01:45AM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 14, 2010 02:08PM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 14, 2010 07:18PM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 14, 2010 10:02PM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 15, 2010 01:02AM

Re: proxy_cache_purge for nginx/0.8.34

Piotr Sikora March 15, 2010 12:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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