mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:51:16 +08:00
Fetch the list of problems more frequently on the admin dashboard
This commit is contained in:
@ -3,7 +3,10 @@ class Admin::DashboardController < Admin::AdminController
|
||||
caches_action :index, expires_in: 1.hour
|
||||
|
||||
def index
|
||||
render_json_dump(AdminDashboardData.fetch)
|
||||
render_json_dump(AdminDashboardData.fetch_all)
|
||||
end
|
||||
|
||||
def problems
|
||||
render_json_dump({problems: AdminDashboardData.fetch_problems})
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user