Vercel Cache API: A progressive cache, integrated with Next.js(vercel.com)
vercel.com
Vercel Cache API: A progressive cache, integrated with Next.js
https://vercel.com/blog/vercel-cache-api-nextjs-cache
5 comments
Engineering Director of Frameworks at Vercel here…
It works automatically when you use the `app` directory in 13.2+. No additional steps are needed when you self-host/run on Node.js
It works automatically when you use the `app` directory in 13.2+. No additional steps are needed when you self-host/run on Node.js
Does this have any ability to cache GraphQL requests, or is there a recommended strategy for doing so?
Is there an API for it because I can't find anything in the docs?.
Hey! Thanks for sharing. Author of the post here, happy to answer questions.
> The Next.js Cache also works fully self-hosted. When self-hosting, an LRU cache is used, which defaults to 50 MB (which can be increased). All entries in the cache are automatically written to disk by default. This filesystem cache can be shared between nodes if they have the same cache key, similar to how ISR works today.
> For developers looking to further customize and modify the core of the Next.js Cache, they can modify underlying cache keys and change how and where cache entries are persisted, including disabling persistence entirely.
Does anything need to be done to enable this when running node myself, or it works automatically?