v1.0.0
DELETE/cache

Cache Management

Manage the server-side data cache.


DELETE/cacheAUTH

Clear the server-side data cache.

Forces a fresh load from upstream data sources on the next request. Useful when you know operational data has changed and want to bypass the 5-minute TTL.

Response

json
{
  "status": "cache cleared",
  "timestamp": "2026-04-07T12:05:00+00:00"
}

Cache Status

GET/data/cache/statusAUTH

Get cache statistics and entry details.

Returns information about current cache entries including age, validity, and estimated memory usage.

json
{
  "cache_entries": 2,
  "cache_ttl_seconds": 300,
  "entries": {
    "snapshot:airline:QF": {
      "cached_at": "2026-04-07T12:00:00+00:00",
      "age_seconds": 120.5,
      "is_valid": true,
      "size_estimate": 45230
    }
  },
  "memory_usage_estimate": 90460
}
cache_ttl_secondsinteger

Cache time-to-live in seconds (currently 300 = 5 minutes).

entriesobject

Map of cache keys to their status, age, and size.

You can also bypass the cache per-request by setting force_refresh: true on the Schedule or Snapshot endpoints.