From 991a36f4f27689b2fa57623629f50f35a8a9bbc0 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 14 Sep 2015 15:35:05 -0400 Subject: [PATCH] always use fetch_stats to get AdminDashboardData data --- app/jobs/scheduled/dashboard_stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/dashboard_stats.rb b/app/jobs/scheduled/dashboard_stats.rb index ab716b575..3a04c1070 100644 --- a/app/jobs/scheduled/dashboard_stats.rb +++ b/app/jobs/scheduled/dashboard_stats.rb @@ -5,7 +5,7 @@ module Jobs every 30.minutes def execute(args) - stats = AdminDashboardData.new.as_json + stats = AdminDashboardData.fetch_stats set_cache(AdminDashboardData, stats) stats end