From 776c4f4dbabd1e425c29bf98eaa95155c3295ccd Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 30 Oct 2024 23:56:14 +0600 Subject: [PATCH] api/stream/manage: don't use clones in node cache --- api/src/stream/manage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/stream/manage.js b/api/src/stream/manage.js index 5f55b5fa..092232f6 100644 --- a/api/src/stream/manage.js +++ b/api/src/stream/manage.js @@ -15,7 +15,8 @@ const freebind = env.freebindCIDR && await import('freebind').catch(() => {}); const streamCache = new NodeCache({ stdTTL: env.streamLifespan, checkperiod: 10, - deleteOnExpire: true + deleteOnExpire: true, + useClones: false, }) streamCache.on("expired", (key) => {