feat: remove max age since cache is cleared when thumbs change

This commit is contained in:
Barış Soner Uşaklı
2020-12-15 19:15:10 -05:00
parent 3ed55799ab
commit ab96f526d6

View File

@@ -50,7 +50,7 @@ async function getThumbs(set) {
return cached.slice(); return cached.slice();
} }
const thumbs = await db.getSortedSetRange(set, 0, -1); const thumbs = await db.getSortedSetRange(set, 0, -1);
cache.set(set, thumbs, 600000); cache.set(set, thumbs);
return thumbs.slice(); return thumbs.slice();
} }