During dailyArchive, reconcileDayVotes may call processGameEndWithGame per unjudged game, each invalidating every voter's stats cache. Since dailyArchive already invalidates each archived user once at the end of its per-user loop, the per-game fan-out is redundant. Add an opt-in skipInvalidate flag and use it from reconcile. The live onGameCompleted trigger path keeps invalidating as before. Stale data is impossible: getStats also self-invalidates on the daily forDate rollover.
Description
No description provided
Languages
TypeScript
85.5%
HTML
14.5%