changeset 2691:baa91bf5a63b

do not call ngx_http_file_cache_free() if a response is not cacheable
author Igor Sysoev <igor@sysoev.ru>
date Fri, 10 Apr 2009 14:48:41 +0000
parents d3cffe32b930
children 111e6e62af32
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2749,7 +2749,7 @@ ngx_http_upstream_finalize_request(ngx_h
 
 #if (NGX_HTTP_CACHE)
 
-    if (r->cache) {
+    if (u->cacheable) {
         time_t  valid;
 
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,