Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for nginx-1.3.1 can't work #7

Closed
magicbear opened this issue Jun 27, 2012 · 1 comment
Closed

Patch for nginx-1.3.1 can't work #7

magicbear opened this issue Jun 27, 2012 · 1 comment

Comments

@magicbear
Copy link

--- 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)
+# if (NGX_HTTP_PROXY || nginx_version >= 1003002)
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)
+# if (NGX_HTTP_PROXY || nginx_version >= 1003002)
{ 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)
+# if (NGX_HTTP_PROXY || nginx_version >= 1003002)
extern ngx_module_t ngx_http_proxy_module;

typedef struct {

@PiotrSikora
Copy link
Contributor

Fixed in 8d3b135, thanks for the report!

torden added a commit to torden/ngx_cache_purge that referenced this issue Sep 29, 2017
torden added a commit to torden/ngx_cache_purge that referenced this issue Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants