Vercel - Prisma - Data not updated

Hi Everyone! :slight_smile:

What could go wrong that my Users dashboard is not updating, looks that Vercel Caching even tho I implemnted the force-no-store?

In my localhost its works well, but when I build on Vercel, the users state is not updated in the dashboard. I even implemented a hard refresh endpoint, after trying lot ways to disable cache.

While I think its Vercel cache, Still find interesting that even just after Prisma Find Users, its Logging the old values. So not just in the /page.tsx, but in the helper where I do prisma.user.findMany({…}) the returned values are old.
But I’m using same database on Local and Vercel Host and only the vercel which caches the data.

However I I Open a user profile, its showing the correct data in both vercel and local host.

Also I have similar Posts Page, for which I have the query in the client side, and its works well

Any advice, what could I do?

Thank!

It does sound like something is going wrong with data caching. I see you already tried export const fetchCache = 'force-no-store'. What happens if you purge the data cache to clear everything and force revalidation?

If I purge the data cache, then it’s fetches the new data and works fine. So indeed sound that the cache is the issue.

This is the code for the endpoint, where i also force dynamic as I understand this also should prevent caching.

Any ide what could’ve done wrong?