Public: anyone can read this; the crew can change it.
The milestones page reuses its plan until the repository changes, so a repeat visit does not read the graph again #3429
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Split from #3347: production measured 66-84 ms, most of it
plan(readPlaninsrc/core/milestones.tsreads the repository's whole graph).Done:
milestonesPagekeepsreadPlan's result in aViewCache(src/view/cache.ts), keyed by the repository's latest event (repoHeadsinsrc/web/map_cache.ts), whether the viewer may see spend, and the UTC day, with a TTL likeLANE_TTL_MS, as docs/CACHING.md designs the map's.readPlan(a count, not a time); a new issue or a closed one makes the next request rebuild it.planphase before and after, from Server-Timing, as information, not as an assertion.Files:
src/web/pages/milestones.ts, a small cache module besidesrc/web/map_cache.tsor an export from it, one test.