mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-23 04:02:01 +08:00
fix(cache): reduce cache TTL from 1 minute to 10 seconds for quicker updates
This commit is contained in:
parent
759f8518b2
commit
ac1cab60a3
@ -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<Provider[]> {
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user