diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-23 09:48:48 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | a8b666e9f1ed002230869606308749614390c82f (patch) | |
tree | 9fb59c3f322cf77ac6b37cc27e2c726f0e10c7ba /server/lib/plugins/plugin-manager.ts | |
parent | 7663e55a2cc46a413bceee2787d48902b15ae642 (diff) | |
download | PeerTube-a8b666e9f1ed002230869606308749614390c82f.tar.gz PeerTube-a8b666e9f1ed002230869606308749614390c82f.tar.zst PeerTube-a8b666e9f1ed002230869606308749614390c82f.zip |
Add plugin static files cache
Diffstat (limited to 'server/lib/plugins/plugin-manager.ts')
-rw-r--r-- | server/lib/plugins/plugin-manager.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts index cfe63e50d..c0b49c7c7 100644 --- a/server/lib/plugins/plugin-manager.ts +++ b/server/lib/plugins/plugin-manager.ts | |||
@@ -17,6 +17,7 @@ import { ServerHook, ServerHookName, serverHookObject } from '../../../shared/mo | |||
17 | import { getHookType, internalRunHook } from '../../../shared/core-utils/plugins/hooks' | 17 | import { getHookType, internalRunHook } from '../../../shared/core-utils/plugins/hooks' |
18 | import { RegisterOptions } from '../../typings/plugins/register-options.model' | 18 | import { RegisterOptions } from '../../typings/plugins/register-options.model' |
19 | import { PluginLibrary } from '../../typings/plugins' | 19 | import { PluginLibrary } from '../../typings/plugins' |
20 | import { ClientHtml } from '../client-html' | ||
20 | 21 | ||
21 | export interface RegisteredPlugin { | 22 | export interface RegisteredPlugin { |
22 | npmName: string | 23 | npmName: string |
@@ -323,6 +324,8 @@ export class PluginManager implements ServerHook { | |||
323 | for (const cssPath of cssRelativePaths) { | 324 | for (const cssPath of cssRelativePaths) { |
324 | await this.concatFiles(join(pluginPath, cssPath), PLUGIN_GLOBAL_CSS_PATH) | 325 | await this.concatFiles(join(pluginPath, cssPath), PLUGIN_GLOBAL_CSS_PATH) |
325 | } | 326 | } |
327 | |||
328 | ClientHtml.invalidCache() | ||
326 | } | 329 | } |
327 | 330 | ||
328 | private concatFiles (input: string, output: string) { | 331 | private concatFiles (input: string, output: string) { |