mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: actually cache duh
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user