Generate one sitemap per tenant

Note that the `sitemap:refresh` task only pings search engines at the
end, so it only does so for the `Sitemap.default_host` defined last. So
we're using the `sitemap:refresh:no_ping` task instead and pinging
search engines after creating each sitemap.

Note we're pinging search engines in staging and preproduction
environments. I'm leaving it that way because that's what we've done
until now, but I wonder whether we should only do so on production.

Since we're creating a new method to get the current url_options, we're
also using it in the dev_seeds.
This commit is contained in:
Javi Martín
2022-09-26 22:20:27 +02:00
parent cc87bca500
commit 5100884110
7 changed files with 98 additions and 42 deletions

1
.gitignore vendored
View File

@@ -22,6 +22,7 @@ tmp/
# Files generated by scripts or compiled
/public/sitemap.xml
/public/tenants/*/sitemap.xml
/public/assets/
/public/machine_learning/data/