From 35f28e94c763370616d25d5820f4b9ef70cedca9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jan 2020 13:47:45 +0100 Subject: Add infohash cache --- server/controllers/tracker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/tracker.ts') 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({ 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) -- cgit v1.2.3