diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-03 13:47:45 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-03 13:47:45 +0100 |
commit | 35f28e94c763370616d25d5820f4b9ef70cedca9 (patch) | |
tree | 7ade51d5e60a5856d74c5776dd62fcaaa3ae0858 /server/controllers | |
parent | 562724a1ed13fe93aba08ca1a0f8e029819e9f32 (diff) | |
download | PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.gz PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.tar.zst PeerTube-35f28e94c763370616d25d5820f4b9ef70cedca9.zip |
Add infohash cache
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/tracker.ts | 2 |
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) |