From d52e698fde062516d59aa1880b578cc61d1053e5 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 30 Nov 2019 23:00:11 +0000 Subject: [PATCH] Memory saving --- src/Client.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index e86e2b6..70a9691 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -116,8 +116,7 @@ export default class Client extends Eris.Client { }); this.server = new Server(this, { port: this.config.port }); - const files = Object.keys(require.cache).filter((path) => path.startsWith('/var/CloudServices/dist')); - files.forEach((file) => delete require.cache[file]); + require.cache = {}; } }