Class: Helios::Sitemap::RefreshJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/helios/sitemap/refresh_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject



11
12
13
14
15
16
17
18
19
# File 'app/jobs/helios/sitemap/refresh_job.rb', line 11

def perform
  config = Helios::Sitemap.configuration

  urls = collect_urls(config)

  generate_sitemap(config)
  upload_to_s3(config) unless Rails.env.development?
  submit_to_indexnow(urls)
end