mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 00:35:59 +00:00
Update AdminController
This commit is contained in:
parent
67983516ea
commit
549ce89b4b
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,7 @@ class AdminController extends Controller
|
|||
|
||||
public function home()
|
||||
{
|
||||
$data = Cache::remember('admin:dashboard:home:data', 1, function() {
|
||||
$data = Cache::remember('admin:dashboard:home:data', 15, function() {
|
||||
return [
|
||||
'failedjobs' => [
|
||||
'count' => PrettyNumber::convert(FailedJob::where('failed_at', '>=', \Carbon\Carbon::now()->subDay())->count()),
|
||||
|
@ -100,6 +100,7 @@ class AdminController extends Controller
|
|||
$dir = $request->query('dir') ?? 'desc';
|
||||
$stats = $this->collectUserStats($request);
|
||||
$users = User::withCount('statuses')->orderBy($col, $dir)->paginate(10);
|
||||
|
||||
return view('admin.users.home', compact('users', 'stats'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue