diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ import { checkMissedConfig, checkFFmpeg, checkConfig, checkActivityPubUrls } fro | |||
26 | 26 | ||
27 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) | 27 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) |
28 | import { logger } from './server/helpers/logger' | 28 | import { logger } from './server/helpers/logger' |
29 | import { API_VERSION, CONFIG, STATIC_PATHS } from './server/initializers/constants' | 29 | import { API_VERSION, CONFIG, STATIC_PATHS, CACHE } from './server/initializers/constants' |
30 | 30 | ||
31 | const missed = checkMissedConfig() | 31 | const missed = checkMissedConfig() |
32 | if (missed.length !== 0) { | 32 | if (missed.length !== 0) { |
@@ -182,8 +182,8 @@ async function startApplication () { | |||
182 | await JobQueue.Instance.init() | 182 | await JobQueue.Instance.init() |
183 | 183 | ||
184 | // Caches initializations | 184 | // Caches initializations |
185 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) | 185 | VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE, CACHE.PREVIEWS.MAX_AGE) |
186 | VideosCaptionCache.Instance.init(CONFIG.CACHE.VIDEO_CAPTIONS.SIZE) | 186 | VideosCaptionCache.Instance.init(CONFIG.CACHE.VIDEO_CAPTIONS.SIZE, CACHE.VIDEO_CAPTIONS.MAX_AGE) |
187 | 187 | ||
188 | // Enable Schedulers | 188 | // Enable Schedulers |
189 | BadActorFollowScheduler.Instance.enable() | 189 | BadActorFollowScheduler.Instance.enable() |