Next.js Discord

Discord Forum

Next.js SSG/ISR and caching

Unanswered
Giant Angora posted this in #help-forum
Open in Discord
Giant AngoraOP
Hi guys, in my work we're using SSG/ISR to generate "thousands" of pages. But our build time has increase. Currently is still low (8 min), but we have not migrated the Product Detail page. Then it could be a lot more!!!

So i'm trying to implement some request caching to reduce those calls. The API already have caching in each request, so it should be fast.

Any sugestions to how to improve this? I'm using currently Next 14.3 and i already tried adding React cache to a bunch of functions and only got to reduce 30s of execution 🥲 .

What about unstable_cache?
Any sugestions?

I also try to make the most of request on parallel instead of sequencial.

0 Replies