paddington-eurostar/templates
Edward Betts 5f0d2c71b1 Cache walk-on NR fares by day of week for instant display
Store GWR walk-on fares keyed by timetable period + weekday
(weekday_gwr_fares_{direction}_{crs}_{period}_{day}), mirroring
the existing NR timetable weekday cache strategy.

On page load the server embeds any cached weekday fares in the page
as WALKON_CACHED_FARES so JS can populate prices immediately without
waiting for the GWR API. The live API call still runs afterwards to
verify and update any changed fares; the spinner label changes to
"Verifying fares" when cached prices are already shown.

The weekday cache is written whenever exact-date fares are fetched
from GWR, keeping it fresh, and populated lazily from the exact-date
cache on first access.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 16:51:11 +01:00
..
base.html Five UI and data features for return journeys and results page 2026-05-25 14:58:32 +01:00
index.html Five UI and data features for return journeys and results page 2026-05-25 14:58:32 +01:00
results.html Cache walk-on NR fares by day of week for instant display 2026-05-25 16:51:11 +01:00
results_loading.html Cache provisional weekday timetables 2026-05-21 11:31:17 +01:00