We have multiple servers and they all use the same S3 bucket, xmlsitemap-rebuild generates a folder with a unique hash, the hash changes based on the host it seems, when server b looks for the files it looks for its own hashed folder, therefore doesn't appear to share generated files across hosts, requiring a rebuild to be run on all hosts.

I think we should have a $conf['xmlsitemap_single_hash'] = true; (needs better name) or just change the behavior to have one hash.

Also I have been wondering, what is the reason we save to filesystem at all? Why can't we just serve the /sitemap.xml path out of the DB?

Comments

Elijah Lynn created an issue. See original summary.

elijah lynn’s picture

Status: Active » Closed (works as designed)

This turned out not to be what I thought it was. I didn't realize each language got its own folder. And in our particular setup, we had 9 languages that were being generated but not /en, because somehow we had moved it from default to /en or something like that. We had to simply run drush xmlsitemap-rebuild twice to generate the /en, which was not the correct way but since rebuild is run on deploy, that solved the deployment issue and it is unlikely rebuild will ever run again.

Closing.