revalidateTag with regexp or wildcard #66864
Answered
by
wwwdepot
omermecitoglu
asked this question in
App Router
-
I'm not sure if this is a good practice but I cache everything separately. like So when I want to revalidate all the users, I need to know all the ids and revalidate them one by one It would be so good if we could revalidate tags with certain patterns like |
Beta Was this translation helpful? Give feedback.
Answered by
wwwdepot
Jun 14, 2024
Replies: 1 comment
-
there is no need to reinvent the wheel
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
omermecitoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is no need to reinvent the wheel
tags: ["users", "user:1"]
revalidateTag("users")