do not call ngx_http_file_cache_free() if a response is not cacheable

This commit is contained in:
Igor Sysoev 2009-04-10 14:48:41 +00:00
parent 49ed98d1eb
commit 909b36ab1f

View File

@ -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,