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

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 3ed55799ab
commit ab96f526d6

@ -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();
} }

Loading…
Cancel
Save