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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,6 +22,7 @@ tmp/
|
||||
|
||||
# Files generated by scripts or compiled
|
||||
/public/sitemap.xml
|
||||
/public/tenants/*/sitemap.xml
|
||||
/public/assets/
|
||||
/public/machine_learning/data/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user