aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/server.ts b/server.ts
index 5d3acb2cd..e25322b66 100644
--- a/server.ts
+++ b/server.ts
@@ -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)
23import { CONFIG } from './server/initializers/config' 23import { CONFIG } from './server/initializers/config'
24import { API_VERSION, FILES_CACHE, WEBSERVER, loadLanguages } from './server/initializers/constants' 24import { API_VERSION, WEBSERVER, loadLanguages } from './server/initializers/constants'
25import { logger } from './server/helpers/logger' 25import { logger } from './server/helpers/logger'
26 26
27const missed = checkMissedConfig() 27const missed = checkMissedConfig()
@@ -101,7 +101,6 @@ loadLanguages()
101import { installApplication } from './server/initializers/installer' 101import { installApplication } from './server/initializers/installer'
102import { Emailer } from './server/lib/emailer' 102import { Emailer } from './server/lib/emailer'
103import { JobQueue } from './server/lib/job-queue' 103import { JobQueue } from './server/lib/job-queue'
104import { VideosPreviewCache, VideosCaptionCache, VideosStoryboardCache } from './server/lib/files-cache'
105import { 104import {
106 activityPubRouter, 105 activityPubRouter,
107 apiRouter, 106 apiRouter,
@@ -143,7 +142,6 @@ import { Hooks } from './server/lib/plugins/hooks'
143import { PluginManager } from './server/lib/plugins/plugin-manager' 142import { PluginManager } from './server/lib/plugins/plugin-manager'
144import { LiveManager } from './server/lib/live' 143import { LiveManager } from './server/lib/live'
145import { HttpStatusCode } from './shared/models/http/http-error-codes' 144import { HttpStatusCode } from './shared/models/http/http-error-codes'
146import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache'
147import { ServerConfigManager } from '@server/lib/server-config-manager' 145import { ServerConfigManager } from '@server/lib/server-config-manager'
148import { VideoViewsManager } from '@server/lib/views/video-views-manager' 146import { VideoViewsManager } from '@server/lib/views/video-views-manager'
149import { isTestOrDevInstance } from './server/helpers/core-utils' 147import { 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()