Mercurial > hg > nginx
changeset 3083:ffe8bfb38184
clean cache updating state if a response has uncacheable code or
cache prohibitive headers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Sep 2009 09:57:38 +0000 |
parents | 5e8bf3e983d2 |
children | 2f35eeea86c2 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Fri Sep 04 09:54:16 2009 +0000 +++ b/src/http/ngx_http_upstream.c Fri Sep 04 09:57:38 2009 +0000 @@ -2113,6 +2113,10 @@ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "http cacheable: %d", u->cacheable); + if (u->cacheable == 0 && r->cache) { + ngx_http_file_cache_free(r, u->pipe->temp_file); + } + #endif p = u->pipe;