diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-10 14:48:41 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-10 14:48:41 +0000 |
commit | 909b36ab1f5c8e57c793468c516c3968d58b574b (patch) | |
tree | c490bc65ba28ad57c5f9587f3ea7656e6996fc79 /src/http/ngx_http_upstream.c | |
parent | 49ed98d1eb3a441ac6b684511b9b95655dc1c8d7 (diff) | |
download | nginx-909b36ab1f5c8e57c793468c516c3968d58b574b.tar.gz nginx-909b36ab1f5c8e57c793468c516c3968d58b574b.zip |
do not call ngx_http_file_cache_free() if a response is not cacheable
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 157c5fd52..7e0c72a03 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2749,7 +2749,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r, #if (NGX_HTTP_CACHE) - if (r->cache) { + if (u->cacheable) { time_t valid; ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |