static function getContentFileRobots() { // Генерируем файл robots.txt if (system::url(0) == 'robots.txt') { if (!($content = cache::get('robots.txt'))) { $content = ormPages::getFileRobots(); // Записываем в кэш cache::set('robots.txt', $content); } header('Content-type: text/plain'); echo $content; system::stop(); } }