News for hackers. Stuff that matters.
Re:Vercel Cache API: A progressive cache, integrated with Ne... by nextaccountic on Friday February 24, 2023 @03:40AM (#34922352)
> 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?

Re:Vercel Cache API: A progressive cache, integrated with Ne... by palmdeezy on Friday February 24, 2023 @06:48AM (#34923551)
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

Re:Vercel Cache API: A progressive cache, integrated with Ne... by thdespou on Friday February 24, 2023 @08:52AM (#34924481)
Is there an API for it because I can't find anything in the docs?.
Re:Vercel Cache API: A progressive cache, integrated with Ne... by gavanwilhite on Friday February 24, 2023 @10:55AM (#34925760)
Does this have any ability to cache GraphQL requests, or is there a recommended strategy for doing so?