aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/tracker.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-03 13:47:45 +0100
committerChocobozzz <me@florianbigard.com>2020-01-03 13:47:45 +0100
commit35f28e94c763370616d25d5820f4b9ef70cedca9 (patch)
tree7ade51d5e60a5856d74c5776dd62fcaaa3ae0858 /server/controllers/tracker.ts
parent562724a1ed13fe93aba08ca1a0f8e029819e9f32 (diff)
downloadPeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.gz
PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.zst
PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.zip
Add infohash cache
Diffstat (limited to 'server/controllers/tracker.ts')
-rw-r--r--server/controllers/tracker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts
index 912f82b86..2ae1cf86c 100644
--- a/server/controllers/tracker.ts
+++ b/server/controllers/tracker.ts
@@ -48,7 +48,7 @@ const trackerServer = new TrackerServer({
48 try { 48 try {
49 if (CONFIG.TRACKER.PRIVATE === false) return cb() 49 if (CONFIG.TRACKER.PRIVATE === false) return cb()
50 50
51 const videoFileExists = await VideoFileModel.doesInfohashExist(infoHash) 51 const videoFileExists = await VideoFileModel.doesInfohashExistCached(infoHash)
52 if (videoFileExists === true) return cb() 52 if (videoFileExists === true) return cb()
53 53
54 const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExist(infoHash) 54 const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExist(infoHash)