Part 10 / Topic 5 of 6
cacheTag — attached now, used later
getDailyStats() already calls cacheTag("mandi-daily-stats") in section 2's code. Compiled cleanly, attached to the cache entry — and, on its own, does precisely nothing observable yet. A tag exists so a future call to revalidateTag("mandi-daily-stats") can invalidate exactly this entry (and nothing else) on demand, without waiting for cacheLife's own revalidate window to pass. That call — and the "an admin edit should invalidate the cached public page it affects" scenario this course's root README already names for Part 11 — belongs to the next part, not this one. This part's honest scope is: tag your cache entries now, with a name specific enough to act on later, so Part 11 has something real to invalidate.
Done here? The practice set for Part 10 — including the solutions — is on the part page.