mirror of
https://github.com/nginx/nginx.git
synced 2025-07-28 16:46:16 +08:00
do not call ngx_http_file_cache_free() if a response is not cacheable
This commit is contained in:
parent
49ed98d1eb
commit
909b36ab1f
@ -2749,7 +2749,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
|
|||||||
|
|
||||||
#if (NGX_HTTP_CACHE)
|
#if (NGX_HTTP_CACHE)
|
||||||
|
|
||||||
if (r->cache) {
|
if (u->cacheable) {
|
||||||
time_t valid;
|
time_t valid;
|
||||||
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user