mirror of
https://github.com/discourse/discourse.git
synced 2024-12-09 23:03:44 +08:00
12 lines
214 B
Ruby
12 lines
214 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Jobs
|
||
|
class RegenerateSitemaps < ::Jobs::Scheduled
|
||
|
every 1.hour
|
||
|
|
||
|
def execute(_args)
|
||
|
Sitemap.regenerate_sitemaps if SiteSetting.enable_sitemap?
|
||
|
end
|
||
|
end
|
||
|
end
|