From 6af21b7cda1f4297122cb8a171299071b8cd7fdf Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 27 Jul 2010 15:26:33 +0000 Subject: fix r3707: cache node should be freed be a response is not cached --- src/http/ngx_http_upstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index de2b97009..93a0e5324 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -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, -- cgit