From 44bf59229a2c2a3d932510ff38d17ebd8eea8137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Thu, 27 Feb 2025 21:36:30 +0100 Subject: [PATCH] fix(acuc): cache for 1 hour --- apps/api/src/controllers/auth.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index b42489aa56..2dca4767a9 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -64,9 +64,8 @@ export async function setCachedACUC( throw signal.error; } - // Cache for 10 minutes. This means that changing subscription tier could have - // a maximum of 10 minutes of a delay. - mogery - await setValue(cacheKeyACUC, JSON.stringify(acuc), 600, true); + // Cache for 1 hour. - mogery + await setValue(cacheKeyACUC, JSON.stringify(acuc), 3600, true); }); } catch (error) { logger.error(`Error updating cached ACUC ${cacheKeyACUC}: ${error}`);