Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 2691:baa91bf5a63b
do not call ngx_http_file_cache_free() if a response is not cacheable
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 10 Apr 2009 14:48:41 +0000 |
parents | d3cffe32b930 |
children | 111e6e62af32 |
comparison
equal
deleted
inserted
replaced
2690:d3cffe32b930 | 2691:baa91bf5a63b |
---|---|
2747 u->pipe->temp_file->file.fd); | 2747 u->pipe->temp_file->file.fd); |
2748 } | 2748 } |
2749 | 2749 |
2750 #if (NGX_HTTP_CACHE) | 2750 #if (NGX_HTTP_CACHE) |
2751 | 2751 |
2752 if (r->cache) { | 2752 if (u->cacheable) { |
2753 time_t valid; | 2753 time_t valid; |
2754 | 2754 |
2755 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 2755 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
2756 "http upstream cache fd: %d", | 2756 "http upstream cache fd: %d", |
2757 r->cache->file.fd); | 2757 r->cache->file.fd); |