mirror of
https://github.com/nginx/nginx.git
synced 2026-07-11 11:24:48 +00:00
Fix the problem of 500 caused by insufficient zone of proxy cache
This commit is contained in:
parent
920dc099c1
commit
b278f422bf
1 changed files with 1 additions and 5 deletions
|
|
@ -301,11 +301,7 @@ ngx_http_file_cache_open(ngx_http_request_t *r)
|
|||
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http file cache exists: %i e:%d", rc, c->exists);
|
||||
|
||||
if (rc == NGX_ERROR) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (rc == NGX_AGAIN) {
|
||||
if (rc == NGX_AGAIN || rc == NGX_ERROR) {
|
||||
return NGX_HTTP_CACHE_SCARCE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue