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:
parent
562724a1ed
commit
35f28e94c7
5 changed files with 32 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue