⚙️Cache Invalidation
Also known as Invalidate Cache, Cache Busting, Stale Cache
Clearing an old copy once the real data changes. Then no one sees old data.
Think of it like
Think of it like a menu board in a cafe. When a price changes, someone must wipe the old one off.
Example
Jack changes a product's price from 20 to 25 euros. His code deletes that product from the cache, so the next visitor sees 25 euros, not 20.
Why it matters
A cache that is never cleared will, sooner or later, show wrong data. That can cost money and trust.
Definition
Common mistake
Key takeaways
- 1Data changed. The copy must go.
- 2Expire or delete. By time, or on save.
- 3Decide how old. Is too old.