Question about the new cacheTag/revalidateTag for user specific tags
Unanswered
Gascon Saintongeois posted this in #help-forum
Gascon SaintongeoisOP
Hi everyone! I'm trying out the new
So that I don't overlap a cache with another user?
Additionally if I ran the following code
Somewhere else in a different endpoint, would it be revalidated for the currently logged in user?
use cache
pattern (https://nextjs.org/docs/canary/app/api-reference/functions/cacheTag#combining-with-revalidatetag) and I had a question about user specific caching. For each user would I have to pass in my user id likecacheTag(`${user.id}-posts`)
So that I don't overlap a cache with another user?
Additionally if I ran the following code
revalidateTag(`${user.id}-posts`)
Somewhere else in a different endpoint, would it be revalidated for the currently logged in user?
1 Reply
Gascon Saintongeois
I have this exact same question!