mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 00:54:21 +08:00
14 lines
240 B
Ruby
14 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
|