Welcome! Log In Create A New Profile

Advanced

Purge files from proxy_cache

April 13, 2012 03:38AM
Hi, i've set a proxy cache for my app ( app is allso served by nginx ). My problem is that i would like to have my app control the cache a little bit so i have hooks that delete files whith keys matching certain paths when some events in the app take place. This also works ok but the problem is that during stress testing if i remove a file from the nginx cache i get a lot of php-fpm processes stampeeding to generate that file in the cache.

I would like to mention that i am using proxy_cache_use_stale updating in order to prevent stampeeding when nginx needs to rebuild cached pages that have expired naturally but that won't help when i remove them from the cache myself.

Question is ... how can i make certain pages expire when the application decides they need to be refreshed ? or ... how can i safely delete them and not have a php riot ?
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: 79
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready