Contao\Automator::generateXmlFiles PHP Method

generateXmlFiles() public method

Regenerate the XML files
public generateXmlFiles ( )
    public function generateXmlFiles()
    {
        // Sitemaps
        $this->generateSitemap();
        // HOOK: add custom jobs
        if (isset($GLOBALS['TL_HOOKS']['generateXmlFiles']) && is_array($GLOBALS['TL_HOOKS']['generateXmlFiles'])) {
            foreach ($GLOBALS['TL_HOOKS']['generateXmlFiles'] as $callback) {
                $this->import($callback[0]);
                $this->{$callback[0]}->{$callback[1]}();
            }
        }
        // Also empty the page cache so there are no links to deleted files
        $this->purgePageCache();
        // Add a log entry
        $this->log('Regenerated the XML files', __METHOD__, TL_CRON);
    }