mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
13 lines
240 B
Ruby
13 lines
240 B
Ruby
module Jobs
|
|
class DashboardStats < Jobs::Scheduled
|
|
include Jobs::Stats
|
|
|
|
every 30.minutes
|
|
|
|
def execute(args)
|
|
stats = AdminDashboardData.fetch_stats
|
|
set_cache(AdminDashboardData, stats)
|
|
stats
|
|
end
|
|
end
|
|
end
|