feat: actually cache duh

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 63bd252fba
commit f05c1dae69

@ -239,7 +239,9 @@ module.exports = function (Topics) {
if (cached !== undefined) {
return cached;
}
return await db.getSortedSetRevRange('tags:topic:count', 0, -1);
const tags = await db.getSortedSetRevRange('tags:topic:count', 0, -1);
cache.set('tags:topic:count', tags);
return tags;
}
async function findMatches(query, cid) {

Loading…
Cancel
Save