From f2865f66992644ca28cddf06d04d7668800f2fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Thu, 10 Apr 2025 16:08:20 +0200 Subject: [PATCH] temp: disable acuc caching --- apps/api/src/controllers/auth.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index 7b38181d..6cf39bf0 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -80,14 +80,14 @@ export async function getACUC( ): Promise { const cacheKeyACUC = `acuc_${api_key}_${mode}`; - if (useCache) { - const cachedACUC = await getValue(cacheKeyACUC); - if (cachedACUC !== null) { - return JSON.parse(cachedACUC); - } - } + // if (useCache) { + // const cachedACUC = await getValue(cacheKeyACUC); + // if (cachedACUC !== null) { + // return JSON.parse(cachedACUC); + // } + // } - if (!cacheOnly) { + // if (!cacheOnly) { let data; let error; let retries = 0; @@ -129,14 +129,14 @@ export async function getACUC( data.length === 0 ? null : data[0].team_id === null ? null : data[0]; // NOTE: Should we cache null chunks? - mogery - if (chunk !== null && useCache) { - setCachedACUC(api_key, chunk); - } + // if (chunk !== null && useCache) { + // setCachedACUC(api_key, chunk); + // } return chunk ? { ...chunk, is_extract: isExtract } : null; - } else { - return null; - } + // } else { + // return null; + // } } export async function clearACUC(api_key: string): Promise {