forked from engineering/cloudservices
Memory saving
parent
f806afa1da
commit
d52e698fde
|
@ -116,8 +116,7 @@ export default class Client extends Eris.Client {
|
||||||
});
|
});
|
||||||
this.server = new Server(this, { port: this.config.port });
|
this.server = new Server(this, { port: this.config.port });
|
||||||
|
|
||||||
const files = Object.keys(require.cache).filter((path) => path.startsWith('/var/CloudServices/dist'));
|
require.cache = {};
|
||||||
files.forEach((file) => delete require.cache[file]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue