mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
store category recent tids for faster retrieval
This commit is contained in:
@@ -89,6 +89,9 @@ module.exports = function(Categories) {
|
||||
db.sortedSetAdd('cid:' + cid + ':tids', postData.timestamp, postData.tid, next);
|
||||
}
|
||||
},
|
||||
function(next){
|
||||
Categories.updateRecentTid(cid, postData.tid, next);
|
||||
},
|
||||
function(next) {
|
||||
db.sortedSetIncrBy('cid:' + cid + ':tids:posts', 1, postData.tid, next);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user