Replies: 2 comments 3 replies
-
Hi @maral I'm trying to integrate https://github.com/fortedigital/nextjs-cache-handler which seems to work fine for Next.js 15+ even with some experimental features like When I set But unfortunately I have no clue how to get this into Redis instead of memory I'll keep investigating but if you have any pointers that would help a lot. |
Beta Was this translation helpful? Give feedback.
-
I made a bug report with an MRE about this, today. In case useful, you can find it here: #82993 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am testing out
dynamicIO
andPPR
and I wanted to see how it would behave if I ran it on multiple instances with a shared cache. Unfortunately, it seems most of the caching is now not being done using the old incremental cache handler (set bycacheHandler
in next.config.ts), but rather using the new handlers that could be set up byexperimental.cacheHandlers
. This was quite difficult to find and even harder to use - there is no documentation yet and I couldn't make it work without breaking the build (it hangs until timeout of 60 seconds is depleted).My questions are:
dynamicIO
/ppr
/cacheComponents
?/.next/server/app/index.html
- could those be shared by multiple Node.js instances somehow (i.e., could there be an adapter to have a different storage instead of the filesystem)?Example
I attach the repo branch I tested it out on, however it's not really that relevant.
https://github.com/maral/caching-experiments/tree/custom-cache-handlers
Beta Was this translation helpful? Give feedback.
All reactions