remove..outdated?.. require.cache

This commit is contained in:
acalcutt 2022-10-27 15:26:51 -04:00
parent 5295ae6b0d
commit b160a61912

View file

@ -487,10 +487,6 @@ export function server(opts) {
console.log('Stopping server and reloading config'); console.log('Stopping server and reloading config');
running.server.shutdown(() => { running.server.shutdown(() => {
for (const key in require.cache) {
delete require.cache[key];
}
const restarted = start(opts); const restarted = start(opts);
running.server = restarted.server; running.server = restarted.server;
running.app = restarted.app; running.app = restarted.app;