Creates and publishes a new sitemap by connecting to a Mongo server and listing all records
A generated sitemap consists of:
- multiple sitemap files containing record urls (45.000 per file)
- a sitemap index file listing all the sitemap files
To make sure there is always a sitemap available, we use blue/green deployment. At the start of the update process any old version left in the inactive blue/green instance is deleted before the new sitemap is created.
For debugging purposes you can use the following urls:
/list
shows a list of stored files/index
shows the contents of the sitemap index file/file?name=x
shows the contents of the stored file with the name x
For more information about sitemaps in general see also https://support.google.com/webmasters/answer/183668?hl=en