Next.js Discord

Discord Forum

revalidate not working as expected in live site

Unanswered
Hunting wasp posted this in #help-forum
Open in Discord
Hunting waspOP
I have set revalidate to 86400 so that my page refreshes after a day.

..........................
const res = await fetch(${url}/blog/post/${slug}?api_key=${apiKey}, {
next: { revalidate: 86400 },
...........

it's been three days it's still showing old data, I'm not sure when this revalidate works correctly sometimes it fetches like serverside component, without making taking data from cache, now with this number it does not refreshes at all...

what's the largest revalidate value that worked for you guys??

0 Replies