]> git.kaiwu.me - nginx.git/commitdiff
Upstream: proxy_no_cache, fastcgi_no_cache warnings removed.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 27 Sep 2013 12:50:13 +0000 (16:50 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 27 Sep 2013 12:50:13 +0000 (16:50 +0400)
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c

index 0b186d792558002a5fe2151907952cc85fcb58f7..029e5eb363e557374e961d98c3fa3bb0746db133 100644 (file)
@@ -2347,12 +2347,6 @@ 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);
 
index 4e3a6e42d6ec5d615d56230952729a0eaed06e3e..cf68711cd30d03c814a95b63a58ef32f9609990f 100644 (file)
@@ -2697,12 +2697,6 @@ ngx_http_proxy_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,
-             "\"proxy_no_cache\" functionality has been changed in 0.8.46, "
-             "now it should be used together with \"proxy_cache_bypass\"");
-    }
-
     ngx_conf_merge_ptr_value(conf->upstream.cache_valid,
                              prev->upstream.cache_valid, NULL);