Next.js Discord

Discord Forum

Cache Agressive.. forever

Answered
Arinji posted this in #help-forum
Open in Discord
How do I make like an unstable cache function.. cache as agressively as possible forever? Until I revalidate it's tag?

Do I just give the revalidate a massive number?
Answered by riský
just don't give it a revalidation time as what you said is the default for what i understood?
View full answer

5 Replies

just don't give it a revalidation time as what you said is the default for what i understood?
Answer
@riský just don't give it a revalidation time as what you said is the default for what i understood?
oh, it is? Nice. So the most agressive form of caching, is jut leaving as default right?
basically i have this page which gets categories from a cms... and its not gonna change much..which is why i want to cache it as much as possible, but when it does imma make a route handler to revalidateTag directly, so it updates
well thats how i have been using it (which seems to be working) and how alfon made it sound https://canary.discord.com/channels/752553802359505017/1204820014763606096/1204820014763606096