Skip to content

Next.js 16 cacheComponents support #43

@maral

Description

@maral

Hi, I saw in several issues unstable_cacheTag and unstable_cacheLife being mentioned. From what I have tested so far I've concluded that the new caching is using a different set of cache handlers (experimental.cacheHandlers instead of the standard cacheHandler).

In our project we are planning ahead and want to build our solution using the new caching and we want to use Redis for shared cache across multiple Node.js instances.

In an ideal world, also the static shells of partial prerendering would be cached in Redis, so each instance doesn't need to hold their own cached files.

In the Next.js 15.4 blog post, they mention the dynamicIO and ppr will merge into a single cacheComponents option. I hope they will document the custom cache handling soon. I asked about it in GH discussions, you can upvote it here: vercel/next.js#81811

Also I wanted to add that I really appreciate how well documented this repo is, kudos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions