On cache invalidation

2026-10-28

Most cache problems are not cache problems. They are ownership problems: two places believe they know the current value, and neither is told when it stops being true.

The usual fix is a shorter TTL, which is really a way of admitting you do not know who owns the value. It works, at the cost of doing the work again and again.

The durable fix is to write down the key, the writer, and the event that makes the value stale. If that list is short enough to fit in a paragraph, the cache stops being a source of surprises and becomes a plain optimisation.


← Back