Patch for ngx_purge_cache on nginx-1.3.2 not working

MagicBear magicbearmo at gmail.com
Wed Jun 27 21:13:09 UTC 2012


--- a/ngx_cache_purge_module.c  2012-06-28 05:08:44.000000000 +0800
+++ b/ngx_cache_purge_module.c  2011-12-20 20:36:20.000000000 +0800
@@ -41,7 +41,7 @@ char       *ngx_http_fastcgi_cache_purge
 ngx_int_t   ngx_http_fastcgi_cache_purge_handler(ngx_http_request_t *r);
 # endif /* NGX_HTTP_FASTCGI */

-# if (NGX_HTTP_PROXY || nginx_version >= 1003002)
+# if (NGX_HTTP_PROXY)
 char       *ngx_http_proxy_cache_purge_conf(ngx_conf_t *cf,
                 ngx_command_t *cmd, void *conf);
 ngx_int_t   ngx_http_proxy_cache_purge_handler(ngx_http_request_t *r);
@@ -76,7 +76,7 @@ static ngx_command_t  ngx_http_cache_pur
       NULL },
 # endif /* NGX_HTTP_FASTCGI */

-# if (NGX_HTTP_PROXY || nginx_version >= 1003002)
+# if (NGX_HTTP_PROXY)
     { ngx_string("proxy_cache_purge"),
       NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2,
       ngx_http_proxy_cache_purge_conf,
@@ -257,7 +257,7 @@ ngx_http_fastcgi_cache_purge_handler(ngx
 }
 # endif /* NGX_HTTP_FASTCGI */

-# if (NGX_HTTP_PROXY || nginx_version >= 1003002)
+# if (NGX_HTTP_PROXY)
 extern ngx_module_t  ngx_http_proxy_module;

 typedef struct {


-- 
MagicBear



More information about the nginx-devel mailing list