mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08: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