Welcome! Log In Create A New Profile

Advanced

best way to empty nginx cache

Jérôme Loyet
June 03, 2009 05:30AM
Hi all,

what is the best and quickest way to empty the whole cache (set via
proxy_cache_path) ?

I'm developing an small web site which allow my customers to empty
their site cache.

I would do:
1- find /path/to/cache -type f -exec rm {}\;
2- gracefull reload nginx to clear the shared memory used to handle cache

what do you think ?

++ jerome
Subject Author Posted

best way to empty nginx cache

Jérôme Loyet June 03, 2009 05:30AM

Re: best way to empty nginx cache

Igor Sysoev June 03, 2009 06:10AM

Re: best way to empty nginx cache

Jérôme Loyet June 03, 2009 08:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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