Welcome! Log In Create A New Profile

Advanced

Re: Purge files from proxy_cache

Antonio P.P. Almeida
April 13, 2012 04:18AM
> Well ... i kind of figured out how to actually delete the files from the
> cache by greping for certain key patterns so i am able to actually
> remove them. The problem is that right after i remove them nginx will
> try to rebuild them and at 1000 req/s a lot of php-php processes will
> come up to try and generate the missing cache page which will cause a
> drop in the reqs's ( i think requests start getting http error pages
> actually ). So that is my problem ... the fact that i have no control
> over how uncached pages are created. I would like just 1 process to
> generate the missing page and the others to wait for it to be available
> or something. I guess i'm looging for the functionality that
>
> proxy_cache_use_stale updating
>
> adds but for missing files. That will only keep me safe from updating of
> cached and expired pages.

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_lock

http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_lock

--appa

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

Purge files from proxy_cache

mlmarius April 13, 2012 03:38AM

Re: Purge files from proxy_cache

Antonio P.P. Almeida April 13, 2012 03:44AM

Re: Purge files from proxy_cache

mlmarius April 13, 2012 04:08AM

Re: Purge files from proxy_cache

Antonio P.P. Almeida April 13, 2012 04:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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