Sitemaps
Sitemaps¶
Bedrock and Springfield both serve a root sitemap at /all-urls.xml
, which links to localised sitemaps for each supported locale.
The sitemap data is (re)generated on a schedule by the command manage.py update_sitemaps_data
which is run as part of
a kubernetes (k8s) cron job that updates a number of data tables.
A cron job in our k8s deployment regularly runs bin/run-db-update.sh
, which calls the update_sitemaps_data
management command.
This command is what pulls URL data from urls.py
files as well as URLs defined in the database and refreshes the
SitemapURL
records in the connected database. It is from these SitemapURL
records that the XML sitemap tree is rendered by the site.