Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(sso): reduce multi-tenant SSO config cache TTL to 10 minutes (#13525)

Mark Salpeter9259f78c1a06
diff --git a/web/src/ee/features/multi-tenant-sso/utils.ts b/web/src/ee/features/multi-tenant-sso/utils.ts
index 674973f640..5a5f6628cd 100644
--- a/web/src/ee/features/multi-tenant-sso/utils.ts
+++ b/web/src/ee/features/multi-tenant-sso/utils.ts
@@ -38,7 +38,7 @@ let cachedSsoConfigs: {
async function getSsoConfigs(): Promise<SsoProviderSchema[]> {
if (!multiTenantSsoAvailable) return [];
- const CACHE_TTL = 60 * 60 * 1000; // 1 hour
+ const CACHE_TTL = 10 * 60 * 1000; // 10 minutes
const FAILEDTOFETCH_RETRY_AFTER = 60 * 1000; // 1 minute
const DB_MAX_WAIT = 2 * 1000; // 2 seconds
const DB_TIMEOUT = 3 * 1000; // 3 seconds