Don't ping search engines after sitemap generation

The Bing sitemap submission was removed in sitemap_generator 6.3.0 [1],
and Google has also deprecated the ping and we're getting an error when
deploying:

```
Ping failed for Google: #<OpenURI::HTTPError: 404 Sitemaps ping is
deprecated.
```

Since those were the only two search engines we were pinging in the
past, we're removing the code that did so.

[1] Pull request 408 in https://github.com/kjvarga/sitemap_generator
This commit is contained in:
Javi Martín
2024-03-29 18:02:42 +01:00
parent d1f9d5b9bf
commit d464be1d7a

View File

@@ -52,8 +52,4 @@ Tenant.run_on_each do
end
end
end
unless Rails.env.development? || Rails.env.test?
SitemapGenerator::Sitemap.ping_search_engines
end
end