Mercurial > hg > nginx
comparison src/http/ngx_http_file_cache.c @ 6906:1aeaae6e9446
Upstream: proxy_cache_background_update and friends.
The directives enable cache updates in subrequests.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 10 Feb 2017 15:13:41 +0300 |
parents | 9a9e13686869 |
children | 99934aade555 |
comparison
equal
deleted
inserted
replaced
6905:9a9e13686869 | 6906:1aeaae6e9446 |
---|---|
1686 } | 1686 } |
1687 | 1687 |
1688 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->file.log, 0, | 1688 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->file.log, 0, |
1689 "http file cache cleanup"); | 1689 "http file cache cleanup"); |
1690 | 1690 |
1691 if (c->updating) { | 1691 if (c->updating && !c->background) { |
1692 ngx_log_error(NGX_LOG_ALERT, c->file.log, 0, | 1692 ngx_log_error(NGX_LOG_ALERT, c->file.log, 0, |
1693 "stalled cache updating, error:%ui", c->error); | 1693 "stalled cache updating, error:%ui", c->error); |
1694 } | 1694 } |
1695 | 1695 |
1696 ngx_http_file_cache_free(c, NULL); | 1696 ngx_http_file_cache_free(c, NULL); |