mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
feat: actually cache duh
This commit is contained in:
@@ -239,7 +239,9 @@ module.exports = function (Topics) {
|
|||||||
if (cached !== undefined) {
|
if (cached !== undefined) {
|
||||||
return cached;
|
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) {
|
async function findMatches(query, cid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user