mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
feat: cache category tag whitelist
This commit is contained in:
@@ -137,6 +137,10 @@ module.exports = function (Categories) {
|
||||
var scores = tags.map((tag, index) => index);
|
||||
db.sortedSetAdd('cid:' + cid + ':tag:whitelist', scores, tags, next);
|
||||
},
|
||||
function (next) {
|
||||
cache.del('cid:' + cid + ':tag:whitelist');
|
||||
next();
|
||||
},
|
||||
], callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user