Next.js Discord

Discord Forum

How to cache new data?

Unanswered
Field Sparrow posted this in #help-forum
Open in Discord
Field SparrowOP
I stored some data in a database and fetched it using @vercel/postgres. now i have updated the data there , but the changes dont reflect . i tried clearing browser cache, stopping and running development server , using unstable_nostore, using revalidate, etc. it reflects the new data on using unstable_nostore and revalidate, but as soon as i reomve them, the old data shows again . i can't keep unstable_nostore forever eithre because there are 1000 rows to be fetched.

0 Replies