Sanity CMS data updates with 1 minute delay (caching issue?)
Unanswered
piscopancer posted this in #help-forum
I integrated sanity client into my next app (no separate sanity project on disk), and it is now part of my next app. when I head over to admin panel an change some data and publish it, it takes for Next about
# 1 minute
to react to these changes, while I continuously click "refresh" button in the browser.
the delay is sooo huge, even though at the of the day it is delivered. What stands behind this issue? I can provide you with any code from my project
# 1 minute
to react to these changes, while I continuously click "refresh" button in the browser.
the delay is sooo huge, even though at the of the day it is delivered. What stands behind this issue? I can provide you with any code from my project
2 Replies
lmao, warning! Sometimes it takes only 4 seconds for next js to see the changes. Why? What is going in there
most probably, due to Vercel's Data Cache mechanism if it won't happen with pnpm dev.
https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating
https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating