mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Cache dashboard data in the controller, not the report model
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
class Admin::DashboardController < Admin::AdminController
|
||||
|
||||
caches_action :index, expires_in: 1.hour
|
||||
|
||||
def index
|
||||
render_json_dump(AdminDashboardData.fetch)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user