RevalidateTag in server action. Can I use the return value from the database to cache tag? #68477
Unanswered
zta7
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can I use the return value from the database to cache tag?
The original intention of this question is that I found that no matter what field I use to filter data, I ultimately hope to mark the data cache with id.
For example I get all the users filtered by isActived column from the database and then I tag them by id.
Does the code below work as I think it does?
Beta Was this translation helpful? Give feedback.
All reactions