Fetch the list of problems more frequently on the admin dashboard

This commit is contained in:
Neil Lalonde
2013-03-29 15:48:26 -04:00
parent df85201298
commit 25073e873f
6 changed files with 96 additions and 4 deletions

View File

@ -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