Next.js Discord

Discord Forum

dynamic cache with dynamic revalidation time #cache

Unanswered
Argentine ant posted this in #help-forum
Open in Discord
Argentine antOP
Hi guys.
I have an interesting task,
Sometimes an endpoint can send something in a request (cache revalidation is needed after a week, of course with a number - example).
I need to give this revalidation, this number, to the revalidation of this request, is it possible to have Dynamic revalidation? If this dynamic is not available, to take the standard that I will put

13 Replies

Polar bear
I don't understand ur question
is ur issue that when it revalidates
u want to cache the request?
@Polar bear u want to cache the request?
Argentine antOP
rewrite question
Polar bear
ooh u rewrote
so ur question is u want to pass when u want ur data to be revalidated
Polar bear
just use revalidate = 0
or dynamic = "force-dynamic"
ur data would be dynamic
@Polar bear just use revalidate = 0
Argentine antOP
u not understand, this dynamic send me backend, I wrote it in question. this revalidation patterns classic I knw 🙂
Polar bear
I'm sorry I don't mean to insult u but ur English is not clear that's why I don't understand :/