fix(cache): reduce cache TTL from 1 minute to 10 seconds for quicker updates

This commit is contained in:
Vaayne 2025-09-29 23:24:36 +08:00
parent 759f8518b2
commit ac1cab60a3

View File

@ -7,7 +7,7 @@ const logger = loggerService.withContext('ApiServerUtils')
// Cache configuration // Cache configuration
const PROVIDERS_CACHE_KEY = 'api-server:providers' 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<Provider[]> { export async function getAvailableProviders(): Promise<Provider[]> {
try { try {