aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server.ts b/server.ts
index 9fe741175..df56bcd82 100644
--- a/server.ts
+++ b/server.ts
@@ -28,7 +28,7 @@ import { checkMissedConfig, checkFFmpeg } from './server/initializers/checker-be
28 28
29// Do not use barrels because we don't want to load all modules here (we need to initialize database first) 29// Do not use barrels because we don't want to load all modules here (we need to initialize database first)
30import { logger } from './server/helpers/logger' 30import { logger } from './server/helpers/logger'
31import { API_VERSION, CONFIG, CACHE } from './server/initializers/constants' 31import { API_VERSION, CONFIG, FILES_CACHE } from './server/initializers/constants'
32 32
33const missed = checkMissedConfig() 33const missed = checkMissedConfig()
34if (missed.length !== 0) { 34if (missed.length !== 0) {
@@ -82,7 +82,7 @@ migrate()
82import { installApplication } from './server/initializers' 82import { installApplication } from './server/initializers'
83import { Emailer } from './server/lib/emailer' 83import { Emailer } from './server/lib/emailer'
84import { JobQueue } from './server/lib/job-queue' 84import { JobQueue } from './server/lib/job-queue'
85import { VideosPreviewCache, VideosCaptionCache } from './server/lib/cache' 85import { VideosPreviewCache, VideosCaptionCache } from './server/lib/files-cache'
86import { 86import {
87 activityPubRouter, 87 activityPubRouter,
88 apiRouter, 88 apiRouter,
@@ -218,8 +218,8 @@ async function startApplication () {
218 ]) 218 ])
219 219
220 // Caches initializations 220 // Caches initializations
221 VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE, CACHE.PREVIEWS.MAX_AGE) 221 VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE, FILES_CACHE.PREVIEWS.MAX_AGE)
222 VideosCaptionCache.Instance.init(CONFIG.CACHE.VIDEO_CAPTIONS.SIZE, CACHE.VIDEO_CAPTIONS.MAX_AGE) 222 VideosCaptionCache.Instance.init(CONFIG.CACHE.VIDEO_CAPTIONS.SIZE, FILES_CACHE.VIDEO_CAPTIONS.MAX_AGE)
223 223
224 // Enable Schedulers 224 // Enable Schedulers
225 ActorFollowScheduler.Instance.enable() 225 ActorFollowScheduler.Instance.enable()