Syntax: | uwsgi_cache_use_stale
|
---|---|
Default: | uwsgi_cache_use_stale off; |
Context: | http , server , location |
Determines in which cases a stale cached response can be used when an error occurs during communication with the uwsgi server. The directive’s parameters match the parameters of the uwsgi_next_upstream directive.
The error
parameter also permits using a stale cached response if a uwsgi server to process a request cannot be selected.
Additionally, the updating
parameter permits using a stale cached response if it is currently being updated. This allows minimizing the number of accesses to uwsgi servers when updating cached data.
To minimize the number of accesses to uwsgi servers when populating a new cache element, the uwsgi_cache_lock directive can be used.
Please login to continue.