Skip to main content

Caching

All external API calls go through a cache-first strategy to minimize rate limit hits and improve response times.

How it works

Cache TTLs per service

Stale fallback

When an external API call fails (network error, rate limit, etc.), the system falls back to the most recent cached data, even if it’s past its TTL. The response includes a _stale: true flag so the UI can indicate the data may not be current.

Cache storage

Cache is stored in the api_cache table of your configured database provider. See Database Providers.

Force refresh

Pass forceRefresh: true to bypass the cache and fetch fresh data. This is used by the Backup System to proactively warm the cache.