From ac1cab60a3486bf33ffc95ea3bbeaa7d323ccc16 Mon Sep 17 00:00:00 2001 From: Vaayne Date: Mon, 29 Sep 2025 23:24:36 +0800 Subject: [PATCH] fix(cache): reduce cache TTL from 1 minute to 10 seconds for quicker updates --- src/main/apiServer/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/apiServer/utils/index.ts b/src/main/apiServer/utils/index.ts index d89944c0b2..bd80c73f51 100644 --- a/src/main/apiServer/utils/index.ts +++ b/src/main/apiServer/utils/index.ts @@ -7,7 +7,7 @@ const logger = loggerService.withContext('ApiServerUtils') // Cache configuration const PROVIDERS_CACHE_KEY = 'api-server:providers' -const PROVIDERS_CACHE_TTL = 1 * 60 * 1000 // 1 minutes +const PROVIDERS_CACHE_TTL = 10 * 1000 // 10 seconds export async function getAvailableProviders(): Promise { try {