Hacker News new | past | comments | ask | show | jobs | submit login
Vercel Cache API: A progressive cache, integrated with Next.js (vercel.com)
32 points by todsacerdoti on Feb 23, 2023 | hide | past | favorite | 5 comments



> Self-Hosted Next.js

> 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?


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


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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: