Fix plugin upgrade

Correctly decache all plugin paths
This commit is contained in:
Chocobozzz
2021-12-03 10:14:17 +01:00
parent 8406a9e8ee
commit ca87d95bcb
6 changed files with 85 additions and 19 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import bytes from 'bytes'
import { IConfig } from 'config'
import decache from 'decache'
import { dirname, join } from 'path'
import { decacheModule } from '@server/helpers/decache'
import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-redundancy-config-filter.type'
import { BroadcastMessageLevel } from '@shared/models/server'
import { VideosRedundancyStrategy } from '../../shared/models'
@@ -497,7 +497,7 @@ export function reloadConfig () {
delete require.cache[fileName]
}
decache('config')
decacheModule('config')
}
purge()