uwsgi_cache_valid
UWSGI: Sets the cache lifetime for response status codes.
| Syntax | uwsgi_cache_valid [code ...] time; |
|---|---|
| Contexts | httpserverlocation |
Behavior
Use with the matching upstream handler and a configured cache zone. Child-scope cache lists replace inherited lists.
Example
uwsgi_cache_valid 200 10m;