From 3e4339eacd35084afae67826295b29ae7ad73dc5 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 10 Feb 2017 15:13:41 +0300 Subject: Upstream: proxy_cache_background_update and friends. The directives enable cache updates in subrequests. --- src/http/ngx_http_file_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http_file_cache.c') diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 731f6b09c..8c75f95f9 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -1688,7 +1688,7 @@ ngx_http_file_cache_cleanup(void *data) ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->file.log, 0, "http file cache cleanup"); - if (c->updating) { + if (c->updating && !c->background) { ngx_log_error(NGX_LOG_ALERT, c->file.log, 0, "stalled cache updating, error:%ui", c->error); } -- cgit