Faster dashboards via Redis caching for Athena queries
Every Athena-backed query in the dashboard API is now cache-fronted by Redis. Repeat loads of the same time window return in milliseconds instead of seconds.
The big analytics pages: Traffic, Bots, Paths, IPs, Geography, Status Codes, the SEO suite, all run Athena queries against your S3 log archive. Athena is fast for ad-hoc analytics but it's not millisecond-fast, and reloading the same view (or sharing a link with a teammate who loads the same view a minute later) used to re-run the query from scratch.
We've now wrapped every Athena query function in the dashboard API with a short-TTL Redis cache. First load still pays the Athena cost; every load after that on the same window comes back from Redis in milliseconds. Cache TTLs are short enough that fresh data still flows in normally, you won't see stale numbers.