Purge whole cache zone

Tom Barrett tom at miramedia.co.uk
Wed Jan 2 08:25:32 UTC 2013


Is it possible to have each server{} block write to it's own cache
directory? Or otherwise identify cached pages by server{} block?

The aim is to make it easy to clear all cached pages for a specific site on
a box hosting multiple sites.


On 1 January 2013 20:29, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
>
> On Tue, Jan 01, 2013 at 09:39:32AM -0500, oleksandr-shb wrote:
>
> > Sorry, folks my question is a duplicate of this thread
> > http://forum.nginx.org/read.php?2,30833,32763#msg-32763 (solution). So,
> the
> > solution is to remove cache folder and kill nginx processes. Not killing
> > processes caused troubles with blank pages for me.
> > # rm -rf /data/nginx/proxy_cache2 && killall -HUP nginx
>
> Correct solution would be to remove all items (subdirectories
> and/or files) within the cache folder, not the cache folder
> itself.
>
> --
> Maxim Dounin
> http://nginx.com/support.html
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130102/432e2ef5/attachment.html>


More information about the nginx mailing list