Caching and stale data

What should publishing do to the old cached result?

Examples

Worked example

Input
The published lesson title changes but readers still see the old title.
Expected output
Invalidate it or replace it.

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

The old result is stale. Removing or replacing it lets readers receive the updated title.

Back to the lesson