1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Add infohash cache

This commit is contained in:
Chocobozzz 2020-01-03 13:47:45 +01:00
parent 562724a1ed
commit 35f28e94c7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 32 additions and 5 deletions

View file

@ -48,7 +48,7 @@ const trackerServer = new TrackerServer({
try {
if (CONFIG.TRACKER.PRIVATE === false) return cb()
const videoFileExists = await VideoFileModel.doesInfohashExist(infoHash)
const videoFileExists = await VideoFileModel.doesInfohashExistCached(infoHash)
if (videoFileExists === true) return cb()
const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExist(infoHash)