mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 03:40:33 +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
|
// 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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user