From ab96f526d6257eaa99b37cb1add814d62a6454e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 15 Dec 2020 19:15:10 -0500 Subject: [PATCH] feat: remove max age since cache is cleared when thumbs change --- src/topics/thumbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/thumbs.js b/src/topics/thumbs.js index 75e023fb0c..e8709a46b4 100644 --- a/src/topics/thumbs.js +++ b/src/topics/thumbs.js @@ -50,7 +50,7 @@ async function getThumbs(set) { return cached.slice(); } const thumbs = await db.getSortedSetRange(set, 0, -1); - cache.set(set, thumbs, 600000); + cache.set(set, thumbs); return thumbs.slice(); }