• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/cache.php
  • Класс: BitrixMainDataCache
  • Вызов: Cache::getSalt
static function getSalt()
{
	$context = MainApplication::getInstance()->getContext();
	$server = $context->getServer();

	$scriptName = $server->get('SCRIPT_NAME');
	if ($scriptName == '/bitrix/urlrewrite.php' && (($v = $server->get('REAL_FILE_PATH')) != null))
	{
		$scriptName = $v;
	}
	elseif ($scriptName == '/404.php' && (($v = $server->get('REAL_FILE_PATH')) != null))
	{
		$scriptName = $v;
	}
	return '/' . mb_substr(md5($scriptName), 0, 3);
}