fix(aviation): increase cache TTL from 30min to 2h to reduce API quota usage (#617)

This commit is contained in:
Elie Habib
2026-03-01 04:22:18 +04:00
committed by GitHub
parent 087c3a7477
commit e0d86613e3

View File

@@ -27,7 +27,7 @@ import { cachedFetchJson, getCachedJson, setCachedJson } from '../../../_shared/
const FAA_CACHE_KEY = 'aviation:delays:faa:v1';
const INTL_CACHE_KEY = 'aviation:delays:intl:v2';
const NOTAM_CACHE_KEY = 'aviation:notam:closures:v1';
const CACHE_TTL = 1800; // 30 min for FAA, intl (real), and NOTAM
const CACHE_TTL = 7200; // 2h for FAA, intl (real), and NOTAM
const SIM_CACHE_TTL = 300; // 5 min for simulation fallback — retry sooner
export async function listAirportDelays(