aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.ts b/server.ts
index a7fea34da..a6052faed 100644
--- a/server.ts
+++ b/server.ts
@@ -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)
28import { logger } from './server/helpers/logger' 28import { logger } from './server/helpers/logger'
29import { API_VERSION, CONFIG, STATIC_PATHS } from './server/initializers/constants' 29import { API_VERSION, CONFIG, STATIC_PATHS, CACHE } from './server/initializers/constants'
30 30
31const missed = checkMissedConfig() 31const missed = checkMissedConfig()
32if (missed.length !== 0) { 32if (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()