diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-19 14:23:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-03-19 14:30:43 +0100 |
commit | d74d29ad9e35929491cf37223398d2535ab23de0 (patch) | |
tree | 2812c9acbc05be0603eb671f8e6bd81086cf84d5 /server.ts | |
parent | 9f79ade627f0044606a9fbbe16ca0154661d12b9 (diff) | |
download | PeerTube-d74d29ad9e35929491cf37223398d2535ab23de0.tar.gz PeerTube-d74d29ad9e35929491cf37223398d2535ab23de0.tar.zst PeerTube-d74d29ad9e35929491cf37223398d2535ab23de0.zip |
Limit user tokens cache
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() |