diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -47,7 +47,7 @@ if (errorMessage !== null) { | |||
47 | 47 | ||
48 | // ----------- PeerTube modules ----------- | 48 | // ----------- PeerTube modules ----------- |
49 | import { migrate, installApplication } from './server/initializers' | 49 | import { migrate, installApplication } from './server/initializers' |
50 | import { JobScheduler, activateSchedulers } from './server/lib' | 50 | import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib' |
51 | import * as customValidators from './server/helpers/custom-validators' | 51 | import * as customValidators from './server/helpers/custom-validators' |
52 | import { apiRouter, clientsRouter, staticRouter } from './server/controllers' | 52 | import { 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 | }) |