mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +08:00
update r2664
This commit is contained in:
parent
c8298bf3ee
commit
054c505050
@ -2891,25 +2891,22 @@ ngx_http_upstream_process_accel_expires(ngx_http_request_t *r,
|
|||||||
switch (n) {
|
switch (n) {
|
||||||
case 0:
|
case 0:
|
||||||
r->upstream->cacheable = 0;
|
r->upstream->cacheable = 0;
|
||||||
break;
|
|
||||||
|
|
||||||
case NGX_ERROR:
|
case NGX_ERROR:
|
||||||
break;
|
return NGX_OK;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
r->cache->valid_sec = ngx_time() + n;
|
r->cache->valid_sec = ngx_time() + n;
|
||||||
break;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
p++;
|
||||||
p++;
|
len--;
|
||||||
len--;
|
|
||||||
|
|
||||||
n = ngx_atoi(p, len);
|
n = ngx_atoi(p, len);
|
||||||
|
|
||||||
if (n != NGX_ERROR) {
|
if (n != NGX_ERROR) {
|
||||||
r->cache->valid_sec = n;
|
r->cache->valid_sec = n;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user