diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-06-06 18:49:47 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-06-06 18:49:47 +0000 |
| commit | 55192e74706f328a53db6173c50ba03af9582253 (patch) | |
| tree | 065b5fe0a8e1ac1a8254fc5525532e2ec5236cb0 /src/http/ngx_http_upstream.c | |
| parent | fa524e9063212bf021aa557a0e42b2b0c06f3982 (diff) | |
| download | nginx-55192e74706f328a53db6173c50ba03af9582253.tar.gz nginx-55192e74706f328a53db6173c50ba03af9582253.tar.bz2 | |
proxy_cache_use_stale/fastcgi_cache_use_stale updating
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index f360e841e..747084528 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -580,6 +580,15 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u) ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http upstream cache: %i", rc); + if (rc == NGX_HTTP_CACHE_UPDATING) { + if (u->conf->cache_use_stale & NGX_HTTP_UPSTREAM_FT_UPDATING) { + rc = NGX_OK; + + } else { + rc = NGX_HTTP_CACHE_STALE; + } + } + if (rc == NGX_OK) { rc = ngx_http_upstream_cache_send(r, u); |
