mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
do not call ngx_http_file_cache_free() if a response is not cacheable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user