diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -21,7 +21,7 @@ import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initi | |||
21 | 21 | ||
22 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) | 22 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) |
23 | import { CONFIG } from './server/initializers/config' | 23 | import { CONFIG } from './server/initializers/config' |
24 | import { API_VERSION, FILES_CACHE, WEBSERVER, loadLanguages } from './server/initializers/constants' | 24 | import { API_VERSION, WEBSERVER, loadLanguages } from './server/initializers/constants' |
25 | import { logger } from './server/helpers/logger' | 25 | import { logger } from './server/helpers/logger' |
26 | 26 | ||
27 | const missed = checkMissedConfig() | 27 | const missed = checkMissedConfig() |
@@ -101,7 +101,6 @@ loadLanguages() | |||
101 | import { installApplication } from './server/initializers/installer' | 101 | import { installApplication } from './server/initializers/installer' |
102 | import { Emailer } from './server/lib/emailer' | 102 | import { Emailer } from './server/lib/emailer' |
103 | import { JobQueue } from './server/lib/job-queue' | 103 | import { JobQueue } from './server/lib/job-queue' |
104 | import { VideosPreviewCache, VideosCaptionCache, VideosStoryboardCache } from './server/lib/files-cache' | ||
105 | import { | 104 | import { |
106 | activityPubRouter, | 105 | activityPubRouter, |
107 | apiRouter, | 106 | apiRouter, |
@@ -143,7 +142,6 @@ import { Hooks } from './server/lib/plugins/hooks' | |||
143 | import { PluginManager } from './server/lib/plugins/plugin-manager' | 142 | import { PluginManager } from './server/lib/plugins/plugin-manager' |
144 | import { LiveManager } from './server/lib/live' | 143 | import { LiveManager } from './server/lib/live' |
145 | import { HttpStatusCode } from './shared/models/http/http-error-codes' | 144 | import { HttpStatusCode } from './shared/models/http/http-error-codes' |
146 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' | ||
147 | import { ServerConfigManager } from '@server/lib/server-config-manager' | 145 | import { ServerConfigManager } from '@server/lib/server-config-manager' |
148 | import { VideoViewsManager } from '@server/lib/views/video-views-manager' | 146 | import { VideoViewsManager } from '@server/lib/views/video-views-manager' |
149 | import { isTestOrDevInstance } from './server/helpers/core-utils' | 147 | import { isTestOrDevInstance } from './server/helpers/core-utils' |
@@ -312,12 +310,6 @@ async function startApplication () { | |||
312 | ServerConfigManager.Instance.init() | 310 | ServerConfigManager.Instance.init() |
313 | ]) | 311 | ]) |
314 | 312 | ||
315 | // Caches initializations | ||
316 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE, FILES_CACHE.PREVIEWS.MAX_AGE) | ||
317 | VideosCaptionCache.Instance.init(CONFIG.CACHE.VIDEO_CAPTIONS.SIZE, FILES_CACHE.VIDEO_CAPTIONS.MAX_AGE) | ||
318 | VideosTorrentCache.Instance.init(CONFIG.CACHE.TORRENTS.SIZE, FILES_CACHE.TORRENTS.MAX_AGE) | ||
319 | VideosStoryboardCache.Instance.init(CONFIG.CACHE.STORYBOARDS.SIZE, FILES_CACHE.STORYBOARDS.MAX_AGE) | ||
320 | |||
321 | // Enable Schedulers | 313 | // Enable Schedulers |
322 | ActorFollowScheduler.Instance.enable() | 314 | ActorFollowScheduler.Instance.enable() |
323 | RemoveOldJobsScheduler.Instance.enable() | 315 | RemoveOldJobsScheduler.Instance.enable() |