diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-03 09:52:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-03 10:14:17 +0100 |
commit | ca87d95bcbfec9241e5840267862bace8b0197fa (patch) | |
tree | 8cc01322ac3140e0ab191770cae0e03b84ab2bb9 /server/initializers | |
parent | 8406a9e8eec261e563d99c92f8a18b6bd3e46e0f (diff) | |
download | PeerTube-ca87d95bcbfec9241e5840267862bace8b0197fa.tar.gz PeerTube-ca87d95bcbfec9241e5840267862bace8b0197fa.tar.zst PeerTube-ca87d95bcbfec9241e5840267862bace8b0197fa.zip |
Fix plugin upgrade
Correctly decache all plugin paths
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index dadda2a77..f3a7c6b6b 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import bytes from 'bytes' | 1 | import bytes from 'bytes' |
2 | import { IConfig } from 'config' | 2 | import { IConfig } from 'config' |
3 | import decache from 'decache' | ||
4 | import { dirname, join } from 'path' | 3 | import { dirname, join } from 'path' |
4 | import { decacheModule } from '@server/helpers/decache' | ||
5 | import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-redundancy-config-filter.type' | 5 | import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-redundancy-config-filter.type' |
6 | import { BroadcastMessageLevel } from '@shared/models/server' | 6 | import { BroadcastMessageLevel } from '@shared/models/server' |
7 | import { VideosRedundancyStrategy } from '../../shared/models' | 7 | import { VideosRedundancyStrategy } from '../../shared/models' |
@@ -497,7 +497,7 @@ export function reloadConfig () { | |||
497 | delete require.cache[fileName] | 497 | delete require.cache[fileName] |
498 | } | 498 | } |
499 | 499 | ||
500 | decache('config') | 500 | decacheModule('config') |
501 | } | 501 | } |
502 | 502 | ||
503 | purge() | 503 | purge() |