mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 00:35:18 +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
|