Lesson 42 of 81
Two functions that both invalidate cached data, but along completely different axes — one keyed to where a route file lives, the other to a label you attached yourself at fetch time. Reaching for the wrong one leaves a cache entry stale and nothing tells you which one you forgot.
12 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
This topic is about judgment and practical tradeoffs more than a single right answer — a mock interview is the better way to test yourself on it.
Be interviewed on this →Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups