1
0
Fork 0

Memory saving

refactor/models
Bsian 2019-11-30 22:55:53 +00:00
parent a718bf23b3
commit f806afa1da
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,9 @@ export default class Client extends Eris.Client {
this.signale.complete(`Loaded interval ${interval.split('.')[0]}`);
});
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]);
}
}