set cache time to 2s

This commit is contained in:
Blake Blackshear 2023-10-27 06:03:09 -05:00
parent 140b5fd5df
commit 7c9e41f538

View File

@ -190,7 +190,7 @@ http {
proxy_cache api_cache; proxy_cache api_cache;
proxy_cache_lock on; proxy_cache_lock on;
proxy_cache_use_stale updating; proxy_cache_use_stale updating;
proxy_cache_valid any 5s; proxy_cache_valid any 2s;
proxy_cache_bypass $http_x_cache_bypass; proxy_cache_bypass $http_x_cache_bypass;
add_header X-Cache-Status $upstream_cache_status; add_header X-Cache-Status $upstream_cache_status;