Next.js Discord

Discord Forum

What are the guidelines for setting cache tags?

Unanswered
Donskoy posted this in #help-forum
Open in Discord
DonskoyOP
Is it like for react query, where we can set multiple tags in an array to make it more specific, but if we invalidate any subset of the array, also the more specific variants get invalidated as well?
There is nothing about it in the docs, even the example given for unstable_cache uses a constant tag, but I guess that is OK, since it also combines function arguments to form a unique cache key.

0 Replies