mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 23:53:52 +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
|