diff --git a/src/config.py b/src/config.py index cf53c68..7f78b88 100644 --- a/src/config.py +++ b/src/config.py @@ -88,6 +88,8 @@ class Config: HII_BASIN_CODE = int(os.getenv("HII_BASIN_CODE", "6")) # 6 = Ping Basin # TTL for the /api/hii/*/latest response cache; source data changes hourly HII_CACHE_TTL_SECONDS = int(os.getenv("HII_CACHE_TTL_SECONDS", "120")) + # TTL for the /measurements/latest response cache (hottest endpoint) + LATEST_CACHE_TTL_SECONDS = int(os.getenv("LATEST_CACHE_TTL_SECONDS", "45")) # Umami analytics (self-hosted). The website id is public (it ships in the # dashboard