diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-07-19 09:55:43 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-07-19 09:55:43 +0000 |
commit | 47f5f947bce395186782a956b15690b917755d24 (patch) | |
tree | 91546c0b1b2075d653d819ca02595c183b5fadc6 /src/http/modules/ngx_http_fastcgi_module.c | |
parent | f7d659aa525f162ef417ab7a01de5de8cb668cf0 (diff) | |
download | nginx-47f5f947bce395186782a956b15690b917755d24.tar.gz nginx-47f5f947bce395186782a956b15690b917755d24.zip |
add warnings for proxy_no_cache and fastcgi_no_cache
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 192de79f3..4731f784f 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -2222,6 +2222,12 @@ ngx_http_fastcgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) ngx_conf_merge_ptr_value(conf->upstream.no_cache, prev->upstream.no_cache, NULL); + if (conf->upstream.no_cache && conf->upstream.cache_bypass == NULL) { + ngx_log_error(NGX_LOG_WARN, cf->log, 0, + "\"fastcgi_no_cache\" functionality has been changed in 0.8.46, " + "now it should be used together with \"fastcgi_cache_bypass\""); + } + ngx_conf_merge_ptr_value(conf->upstream.cache_valid, prev->upstream.cache_valid, NULL); |