From 39bde6153885bc13b0f16faf2ba80efc86ba4bcf Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 16 Jun 2023 17:15:31 -0700 Subject: [PATCH] ops: Set cache time for /api/v1 endpoints to 2 sec --- production/nginx/location-api.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/production/nginx/location-api.conf b/production/nginx/location-api.conf index 638e1911c..2b2b85411 100644 --- a/production/nginx/location-api.conf +++ b/production/nginx/location-api.conf @@ -97,10 +97,10 @@ location @mempool-api-v1-cache-normal { proxy_set_header X-Forwarded-Proto $scheme; proxy_cache api; - proxy_cache_valid 200 10s; + proxy_cache_valid 200 2s; proxy_redirect off; - expires 10s; + expires 2s; } location @mempool-api-v1-cache-disabled {