Mercurial > hg > nginx
changeset 3934:b4b7bb829fe2
fix "stalled cache updating" alert,
when non-cachable HEAD response did not not free an expired cache node
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 01 Jun 2011 08:02:34 +0000 |
parents | b5c169873c6b |
children | c9c2805ac924 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }