diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |
30 | import { logger } from './server/helpers/logger' | 30 | import { logger } from './server/helpers/logger' |
31 | import { API_VERSION, CONFIG, CACHE } from './server/initializers/constants' | 31 | import { API_VERSION, CONFIG, FILES_CACHE } from './server/initializers/constants' |
32 | 32 | ||
33 | const missed = checkMissedConfig() | 33 | const missed = checkMissedConfig() |
34 | if (missed.length !== 0) { | 34 | if (missed.length !== 0) { |
@@ -82,7 +82,7 @@ migrate() | |||
82 | import { installApplication } from './server/initializers' | 82 | import { installApplication } from './server/initializers' |
83 | import { Emailer } from './server/lib/emailer' | 83 | import { Emailer } from './server/lib/emailer' |
84 | import { JobQueue } from './server/lib/job-queue' | 84 | import { JobQueue } from './server/lib/job-queue' |
85 | import { VideosPreviewCache, VideosCaptionCache } from './server/lib/cache' | 85 | import { VideosPreviewCache, VideosCaptionCache } from './server/lib/files-cache' |
86 | import { | 86 | import { |
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() |