Next.js Discord

Discord Forum

isr for millions of pages?

Unanswered
Serengeti posted this in #help-forum
Open in Discord
SerengetiOP
i have incremental static generation which is able to serve millions of pages for a blog website, but over time next.js processes ends up using too much memory until its crashed. how can i optimize next.js to use something like a LRU cache for accesed pages, so only the most recent 10k pages are served statically?

0 Replies