diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-12 11:56:02 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-12 11:56:02 +0200 |
commit | f981dae8617271a2dc713bb683951730b306e0c5 (patch) | |
tree | ecee631766bc1b98c20a7836479fed40850c5a56 /server.ts | |
parent | 075f16caac5236cb04c98ae7b3a989766d764bb3 (diff) | |
download | PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.gz PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.zst PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.zip |
Add previews cache system between pods
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 | }) |