Welcome! Log In Create A New Profile

Advanced

Re: [MOD] proxy_cache regexp batch purge modules 0.2

November 17, 2011 10:58AM
because nginx is not threadsafe, it will cause segment failure for
this version. Bad news. Need to continue improve.

2011/11/17 MagicBear <magicbearmo@gmail.com>:
> Download
> =====
> http://m-b.cc/share/ngx_batch_purge-0.2.tar.gz
>
>
> About
> =====
> nginx_cache_batchpurge is 'nginx' module which adds regex batch purge content
> from 'proxy' caches, and is base on `ngx_cache_purge`.
>
>
> Notice
> =====
> This module is use only for batch purge, if you want to purge a single object,
> please install ngx_cache_purge module, this module can work with that module
> exists.
>
>
> Install
> =====
> ./configure --add-module=../ngx_batch_purge-0.2
>
>
> Configuration directives
> ========================
> proxy_cache_purge
> -----------------
> * **syntax**: `proxy_cache_batchpurge zone_name key`
> * **default**: `none`
> * **context**: `location`
>
> Sets area and key used for purging selected pages from `proxy`'s cache.
>
>
>
> Sample configuration
> ====================
>    http {
>        proxy_cache_path  /tmp/cache  keys_zone=tmpcache:10m;
>
>        server {
>            location / {
>                proxy_pass         http://127.0.0.1:8000;
>                proxy_cache        tmpcache;
>                proxy_cache_key    $uri$is_args$args;
>            }
>
>            location ~ /purge(/.*) {
>                allow              127.0.0.1;
>                deny               all;
>                proxy_cache_purge  tmpcache $1$is_args$args;
>            }
>
>            location ~ /regex_purge(.*) {
>                allow              127.0.0.1;
>                deny               all;
>                proxy_cache_batchpurge  tmpcache $1$is_args$args;
>            }
>        }
>    }
>
>
>
>
> --
> MagicBear
>



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

[MOD] proxy_cache regexp batch purge modules 0.2

magicbear November 17, 2011 08:24AM

Re: [MOD] proxy_cache regexp batch purge modules 0.2

magicbear November 17, 2011 10:58AM

Re: [MOD] proxy_cache regexp batch purge modules 0.2

skyshade November 30, 2011 03:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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