Cache dashboard data in the controller, not the report model

This commit is contained in:
Neil Lalonde
2013-03-20 13:54:32 -04:00
parent 1e4dd3ea0c
commit c3c25b894a
4 changed files with 92 additions and 202 deletions

View File

@ -1,6 +1,7 @@
class Admin::DashboardController < Admin::AdminController
caches_action :index, expires_in: 1.hour
def index
render_json_dump(AdminDashboardData.fetch)
end