]> git.kaiwu.me - nginx.git/commitdiff
unlink proxy_cache and proxy_cache_valid
authorIgor Sysoev <igor@sysoev.ru>
Tue, 24 Mar 2009 12:31:24 +0000 (12:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 24 Mar 2009 12:31:24 +0000 (12:31 +0000)
src/http/modules/ngx_http_proxy_module.c

index 680d77a58631bb82b0ec0b5cdc54ed5b188ef286..13384766a8d8213ea28954a1ff2889d18e7805fd 100644 (file)
@@ -2068,10 +2068,6 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
     ngx_conf_merge_ptr_value(conf->upstream.cache_valid,
                              prev->upstream.cache_valid, NULL);
 
-    if (conf->upstream.cache_valid == NULL) {
-        conf->upstream.cache = NULL;
-    }
-
 #endif
 
     if (conf->method.len == 0) {