comparison src/http/ngx_http_upstream.c @ 3713:f0b62d1ac7af

move debug logging inside ngx_http_file_cache_free()
author Igor Sysoev <igor@sysoev.ru>
date Wed, 28 Jul 2010 15:56:56 +0000
parents ce6ba077c270
children 502a6b0acf3f 7cccdc1809a2
comparison
equal deleted inserted replaced
3712:518eeff336c1 3713:f0b62d1ac7af
1723 #if (NGX_HTTP_CACHE) 1723 #if (NGX_HTTP_CACHE)
1724 1724
1725 if (r->cache) { 1725 if (r->cache) {
1726 time_t valid; 1726 time_t valid;
1727 1727
1728 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1729 "http upstream cache fd: %d", r->cache->file.fd);
1730
1731 valid = ngx_http_file_cache_valid(u->conf->cache_valid, status); 1728 valid = ngx_http_file_cache_valid(u->conf->cache_valid, status);
1732 1729
1733 if (valid) { 1730 if (valid) {
1734 r->cache->valid_sec = ngx_time() + valid; 1731 r->cache->valid_sec = ngx_time() + valid;
1735 r->cache->error = status; 1732 r->cache->error = status;
2990 #if (NGX_HTTP_CACHE) 2987 #if (NGX_HTTP_CACHE)
2991 2988
2992 if (u->cacheable && r->cache) { 2989 if (u->cacheable && r->cache) {
2993 time_t valid; 2990 time_t valid;
2994 2991
2995 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
2996 "http upstream cache fd: %d", r->cache->file.fd);
2997
2998 if (rc == NGX_HTTP_BAD_GATEWAY || rc == NGX_HTTP_GATEWAY_TIME_OUT) { 2992 if (rc == NGX_HTTP_BAD_GATEWAY || rc == NGX_HTTP_GATEWAY_TIME_OUT) {
2999 2993
3000 valid = ngx_http_file_cache_valid(u->conf->cache_valid, rc); 2994 valid = ngx_http_file_cache_valid(u->conf->cache_valid, rc);
3001 2995
3002 if (valid) { 2996 if (valid) {