OhMyBug

concurrency/state

Missed Cache Invalidation After Write

#6uncommon72 sightingsfirst seen August 2026

What goes wrong

A write (or a fresh authoritative read) succeeds, but one of the caches or derived copies that later decisions read from is not refreshed or invalidated — classic missing cache invalidation. That copy keeps serving the old value.

Example

After the profile update succeeds nobody invalidates the profile query cache, and the header avatar keeps showing the old picture.

Not to be confused with

The refresh wiring for a known state change is missing; a cache key that lacks a dimension (Key Omits A Dimension) or a result stitched from reads of different moments (Result Mixes Reads From Different Times) have other causes.

Discovered by

Field notes · 19