Skip to content

Extremely high amount of Data Cache writes #7108

Closed Answered by sandervspl
sandervspl asked this question in Help
Discussion options

You must be logged in to vote

I have resolved the issue. These are the steps I had to take in case anyone else encounters the same problem.

  1. I've added this config to all my page.tsx AND route.tsx files (such as opengraph-image routes)
export const revalidate = false;
export const dynamic = 'force-static';
export const dynamicParams = false; // -> disables ISR
  1. I generate ALL pages on build now, instead of some
  2. I deleted all twitter-image.tsx files because for some reason the route config don't work on those routes, even though the docs say they do

Also applied these changes but I'm not sure if they're necessary

  1. Added export const fetchCache = 'force-cache'; to the root layout
  2. Removed unused pages/routes even thoug…

Replies: 10 comments 20 replies

Comment options

You must be logged in to vote
1 reply
@sandervspl
Comment options

Comment options

You must be logged in to vote
8 replies
@lhguerra
Comment options

@lhguerra
Comment options

@lhguerra
Comment options

@amyegan
Comment options

@lhguerra
Comment options

Answer selected by sandervspl
Comment options

You must be logged in to vote
1 reply
@schnubor
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@wanjas
Comment options

@tavux-ratkaisut
Comment options

@lhguerra
Comment options

Comment options

You must be logged in to vote
1 reply
@lhguerra
Comment options

Comment options

You must be logged in to vote
1 reply
@amyegan
Comment options

Comment options

You must be logged in to vote
5 replies
@sdbarrington
Comment options

@sandervspl
Comment options

@sdbarrington
Comment options

@sdbarrington
Comment options

@victorcarvalhosp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
Caching Cache