mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
The comparison history blocks were read with cache.get and stored with cache.set, outside the single-flight slot that an invalidation fences. A read that spanned a write cached the days from before it for the block's whole TTL, and two concurrent reads of a block both queried. Each block now goes through cache.wrap; the blocks missing at the time still share one read of their span.