From 4de9f3f0131df7f47f66b1af90e646975599e29b Mon Sep 17 00:00:00 2001 From: TheBeastLT Date: Tue, 17 Mar 2020 19:40:19 +0100 Subject: [PATCH] [scraper] fixes cache option deprecation --- addon/lib/cache.js | 1 + scraper/lib/cache.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/addon/lib/cache.js b/addon/lib/cache.js index fb1f167..83bcdae 100644 --- a/addon/lib/cache.js +++ b/addon/lib/cache.js @@ -25,6 +25,7 @@ function initiateCache() { uri: MONGO_URI, options: { collection: 'torrentio_addon_collection', + useUnifiedTopology: true, ttl: STREAM_TTL }, ttl: STREAM_TTL, diff --git a/scraper/lib/cache.js b/scraper/lib/cache.js index b6601a6..34cffc9 100644 --- a/scraper/lib/cache.js +++ b/scraper/lib/cache.js @@ -23,6 +23,7 @@ function initiateTorrentFilesCache() { uri: MONGO_URI, options: { collection: 'cacheManager', + useUnifiedTopology: true, }, ttl: GLOBAL_TTL, ignoreCacheErrors: true @@ -37,6 +38,7 @@ function initiateRemoteCache() { uri: MONGO_URI, options: { collection: 'torrentio_scraper_collection', + useUnifiedTopology: true, }, ttl: GLOBAL_TTL, ignoreCacheErrors: true