From d49e72688e10ad11c2ab3cca46b10a3617077359 Mon Sep 17 00:00:00 2001 From: sebastianPiekarczyk Date: Wed, 26 Jun 2024 13:01:41 +0200 Subject: [PATCH] Temporarily reduce redis cache --- summerfi-api/get-apy-function/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/summerfi-api/get-apy-function/src/index.ts b/summerfi-api/get-apy-function/src/index.ts index 6b015b5267..1d65ca8003 100644 --- a/summerfi-api/get-apy-function/src/index.ts +++ b/summerfi-api/get-apy-function/src/index.ts @@ -57,7 +57,8 @@ export const handler = async ( : await getRedisInstance( { url: REDIS_CACHE_URL, - ttlInSeconds: ONE_HOUR * 6, + // Temporarily reduced to 20 min, standard value is 6h + ttlInSeconds: ONE_HOUR / 3, username: REDIS_CACHE_USER, password: REDIS_CACHE_PASSWORD, stage: STAGE,