Caches need expiration stories
A cache is a promise that stale data is acceptable for a specific amount of time.
Before adding one, decide:
- What is the source of truth?
- How stale can this value be?
- Who invalidates it?
- What happens if invalidation fails?
If nobody can answer those questions, the cache is not optimization. It is suspense.