]> git.kaiwu.me - nginx.git/commitdiff
fix r3707: cache node should be freed be a response is not cached
authorIgor Sysoev <igor@sysoev.ru>
Tue, 27 Jul 2010 15:26:33 +0000 (15:26 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 27 Jul 2010 15:26:33 +0000 (15:26 +0000)
src/http/ngx_http_upstream.c

index de2b97009227432ef55bee21b771ac326f6842dd..93a0e532411f755eb02e6849dd34f5993c304fcc 100644 (file)
@@ -1722,7 +1722,7 @@ ngx_http_upstream_intercept_errors(ngx_http_request_t *r,
 
 #if (NGX_HTTP_CACHE)
 
-            if (u->cacheable && r->cache) {
+            if (r->cache) {
                 time_t  valid;
 
                 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,