mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix performance issue with acp
This commit is contained in:
@@ -145,7 +145,7 @@ usersController.getUsersAndCount = function(set, uid, start, stop, callback) {
|
||||
count: function(next) {
|
||||
if (set === 'users:online') {
|
||||
var now = Date.now();
|
||||
db.sortedSetCount('users:online', now - 300000, now, next);
|
||||
db.sortedSetCount('users:online', now - 300000, '+inf', next);
|
||||
} else if (set === 'users:banned') {
|
||||
db.sortedSetCard('users:banned', next);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user