aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index e7fa99c90..a6a9fcb02 100644
--- a/server.ts
+++ b/server.ts
@@ -47,7 +47,7 @@ if (errorMessage !== null) {
47 47
48// ----------- PeerTube modules ----------- 48// ----------- PeerTube modules -----------
49import { migrate, installApplication } from './server/initializers' 49import { migrate, installApplication } from './server/initializers'
50import { JobScheduler, activateSchedulers } from './server/lib' 50import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib'
51import * as customValidators from './server/helpers/custom-validators' 51import * as customValidators from './server/helpers/custom-validators'
52import { apiRouter, clientsRouter, staticRouter } from './server/controllers' 52import { apiRouter, clientsRouter, staticRouter } from './server/controllers'
53 53
@@ -147,6 +147,8 @@ function onDatabaseInitDone () {
147 // Activate job scheduler 147 // Activate job scheduler
148 JobScheduler.Instance.activate() 148 JobScheduler.Instance.activate()
149 149
150 VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE)
151
150 logger.info('Server listening on port %d', port) 152 logger.info('Server listening on port %d', port)
151 logger.info('Webserver: %s', CONFIG.WEBSERVER.URL) 153 logger.info('Webserver: %s', CONFIG.WEBSERVER.URL)
152 }) 154 })