Can revalidate and tags be used together in App Router fetch?
#84343
Replies: 1 comment 6 replies
-
|
Let's see if this does the trick: It is possible to use both time based and on-demand tag based invalidation. |
Beta Was this translation helpful? Give feedback.
6 replies
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.
-
Summary
I’m using
fetchin the App Router with bothrevalidateandtags.My first thought was that using them together would update the cache in both situations, but it doesn't.
When using
tagstogether withrevalidate, therevalidatetimer is ignored and the cache is only updated manually viarevalidateTag().Is there a recommended pattern to combine both time-based cache revalidation and manual tags?
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions