discourse/app/jobs/scheduled/dashboard_stats.rb
2015-07-20 22:45:05 +08:00

13 lines
240 B
Ruby

module Jobs
class DashboardStats < Jobs::Scheduled
include Jobs::Stats
every 30.minutes
def execute(args)
stats = AdminDashboardData.new.as_json
set_cache(AdminDashboardData, stats)
stats
end
end
end