mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: remove max age since cache is cleared when thumbs change
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user