Improve Sitemap Speed

The sitemap of Sulu is based on small pieces, which are generated by so called SitemapProvider (see Provider for XML-Sitemap). Each provider returns mostly 50000 links which can return many links, which would take a bigger amount of time. The Google bot does not wait a long time for the sitemap to be returned. Therefore Sulu is able to pre-generate the whole sitemap and cache it on the filesystem. This can be triggered by calling the following command. This should be be done by a cron-job.

If you use the {host} replacer in your webspace url configuration make sure you have the symfony router context parameter configured.

# config/services.yaml
parameters: ''
bin/websiteconsole sulu:website:dump-sitemap