Skip to content

Commit 39bde61

Browse files
committed
ops: Set cache time for /api/v1 endpoints to 2 sec
1 parent 0fb92e6 commit 39bde61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

production/nginx/location-api.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ location @mempool-api-v1-cache-normal {
9797
proxy_set_header X-Forwarded-Proto $scheme;
9898

9999
proxy_cache api;
100-
proxy_cache_valid 200 10s;
100+
proxy_cache_valid 200 2s;
101101
proxy_redirect off;
102102

103-
expires 10s;
103+
expires 2s;
104104
}
105105

106106
location @mempool-api-v1-cache-disabled {

0 commit comments

Comments
 (0)