node-cache icon indicating copy to clipboard operation
node-cache copied to clipboard

node-cache is automatically empty on node js vercel deployment

Open prakashn91 opened this issue 2 years ago • 4 comments

Hi Guys, @smrchy @heryandi i just migrate my one-service digital ocean to Vercel,but unfortunately, my cache data is lost after some time automatically and on digital ocean it cache works fine

Please help me if anyone face same kind of issue

prakashn91 avatar Jul 13 '23 11:07 prakashn91

Seems like a cold restart from vercel

doc-han avatar Aug 07 '23 14:08 doc-han

Hi Guys, @smrchy @heryandi i just migrate my one-service digital ocean to Vercel,but unfortunately, my cache data is lost after some time automatically and on digital ocean it cache works fine

Please help me if anyone face same kind of issue

Vercel does not keep the application running all the time, while at digital ocean the server is on 24 hours a day. in vercel your application "sleeps" and loses all the "context" that is stored in memory

erickythierry avatar Aug 13 '23 16:08 erickythierry