缓存 TTL 对齐:图表内存/会话缓存统一降为 5 分钟(metar),与大表刷新同步

- HOURLY_CACHE_TTL_MS: model(30min) → metar(5min)
- SESSION_CACHE_TTL_MS: 10min → metar(5min)
- 消除大表已刷新但折线图仍显示旧温度的时差问题
This commit is contained in:
2569718930@qq.com
2026-05-26 08:13:37 +08:00
parent 8a534160f0
commit 5d10d60dcb
2 changed files with 4 additions and 4 deletions
@@ -33,10 +33,10 @@ export function runTests() {
"scan list local cache should use the shared 5-minute row cadence",
);
assert(
chartSource.includes("DASHBOARD_REFRESH_POLICY_MS.model") &&
chartSource.includes("DASHBOARD_REFRESH_POLICY_MS.metar") &&
!chartSource.includes("setInterval(") &&
!chartSource.includes("window.setInterval"),
"selected city detail chart should be on-demand and use model-layer cache instead of 60-second polling",
"selected city detail chart cache should align with 5-minute scan/metar cadence",
);
assert(
chartSource.includes("_hourlyRequestCache") &&