# HG changeset patch # User Igor Sysoev # Date 1306915354 0 # Node ID b4b7bb829fe21cf0f688860a93df7d06f8311904 # Parent b5c169873c6b8f87042e25d206c9e58e4576939d fix "stalled cache updating" alert, when non-cachable HEAD response did not not free an expired cache node diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2031,6 +2031,15 @@ ngx_http_upstream_send_response(ngx_http c->error = 1; } else { + +#if (NGX_HTTP_CACHE) + + if (r->cache) { + ngx_http_file_cache_free(r->cache, u->pipe->temp_file); + } + +#endif + ngx_http_upstream_finalize_request(r, u, rc); return; }