Cache invalidation marks cached entries as stale so the next read fetches fresh data from the source of truth, instead of serving yesterday's version.
Every cache eventually disagrees with its source. The source updates, the cache does not know, and the next reader gets a stale answer. Invalidation is the mechanism that reconciles the two. It can happen explicitly (the writer tells the cache "delete key X"), implicitly (a TTL expires and the entry is dropped), or lazily (the entry is marked stale but only refreshed on next read).
Scope note. "Invalidation" is a general verb that applies beyond caching: sessions are invalidated at logout, tokens at revocation, plans on policy breach, permissions on role change. This entry covers only cache invalidation — the mechanism that reconciles cached data with its source of truth.
Phil Karlton's famous quote — "there are only two hard things in computer science: cache invalidation and naming things" — survives because it is accurate. The mechanism is trivial to implement and impossibly hard to get right at scale.