Welcome! Log In Create A New Profile

Advanced

Re: Purge whole cache zone

January 02, 2013 03:48AM
On Jan 2, 2013, at 12:25 , Tom Barrett wrote:

> 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.

proxy_cache_path /path/to/cache/server1 keys_zone=SERVER1:10m;

server {
server_name server1.domain.com;
proxy_cache SERVER1;
...
}

proxy_cache_path /path/to/cache/server2 keys_zone=SERVER2:10m;

server {
server_name server2.domain.com;
proxy_cache SERVER2;
...
}


--
Igor Sysoev
http://nginx.com/support.html

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

Purge whole cache zone

oleksandr-shb January 01, 2013 09:12AM

Re: Purge whole cache zone

oleksandr-shb January 01, 2013 09:39AM

Re: Purge whole cache zone

Maxim Dounin January 01, 2013 03:30PM

Re: Purge whole cache zone

miradev January 02, 2013 03:26AM

Re: Purge whole cache zone

Igor Sysoev January 02, 2013 03:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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