]> git.kaiwu.me - nginx.git/commitdiff
fix scgi_no_cache and uwsgi_no_cache initialization
authorIgor Sysoev <igor@sysoev.ru>
Wed, 14 Jul 2010 11:29:19 +0000 (11:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 14 Jul 2010 11:29:19 +0000 (11:29 +0000)
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c

index 11d3610a4636349d8f94859086489a0eb010f7d1..3524b63573a29920e344457c70018017067f6e02 100644 (file)
@@ -1015,6 +1015,7 @@ ngx_http_scgi_create_loc_conf(ngx_conf_t *cf)
 #if (NGX_HTTP_CACHE)
     conf->upstream.cache = NGX_CONF_UNSET_PTR;
     conf->upstream.cache_min_uses = NGX_CONF_UNSET_UINT;
+    conf->upstream.no_cache = NGX_CONF_UNSET_PTR;
     conf->upstream.cache_valid = NGX_CONF_UNSET_PTR;
 #endif
 
index d46c8f3713b3f8ec2774e522f2b7fc686e7ea447..e4ed1f0f8cfa898a198545e39338421a3994afbc 100644 (file)
@@ -1068,6 +1068,7 @@ ngx_http_uwsgi_create_loc_conf(ngx_conf_t *cf)
 #if (NGX_HTTP_CACHE)
     conf->upstream.cache = NGX_CONF_UNSET_PTR;
     conf->upstream.cache_min_uses = NGX_CONF_UNSET_UINT;
+    conf->upstream.no_cache = NGX_CONF_UNSET_PTR;
     conf->upstream.cache_valid = NGX_CONF_UNSET_PTR;
 #endif