mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Improve speed of user list
This commit is contained in:
@@ -52,17 +52,12 @@ class AdminUserController extends BasePageController
|
||||
$variables['email'],
|
||||
$variables['host'],
|
||||
$variables['role'],
|
||||
true,
|
||||
$variables['created_from'],
|
||||
$variables['created_to']
|
||||
);
|
||||
|
||||
$results = $this->paginate($result, User::getCount($variables['role'], $variables['username'], $variables['host'], $variables['email'], $variables['created_from'], $variables['created_to']), config('nntmux.items_per_page'), $page, $request->url(), $request->query());
|
||||
|
||||
// Note: API request counts are already included via the getRange query when $apiRequests = true
|
||||
// Country lookups and additional counts removed to improve performance on large datasets
|
||||
// These can be added back via individual user profile pages or AJAX calls if needed
|
||||
|
||||
// Build order by URLs
|
||||
$orderByUrls = [];
|
||||
foreach ($ordering as $orderType) {
|
||||
|
||||
Reference in New Issue
Block a user