remove..outdated?.. require.cache
This commit is contained in:
parent
5295ae6b0d
commit
b160a61912
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue