static function getContentFileSiteMap() { if (system::url(0) == 'sitemap.xml') { if (!($content = cache::get('sitemap.xml'))) { $content = ormPages::getFileSiteMap(); // Записываем в кэш cache::set('sitemap.xml', $content); } header('Content-type: text/xml; charset=UTF-8'); echo $content; system::stop(); } }