• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/composite/page.php
  • Класс: BitrixMainCompositePage
  • Вызов: Page::getStaticHtmlStorage
static function getStaticHtmlStorage($cacheKey)
{
	$configuration = array();
	$htmlCacheOptions = Helper::getOptions();
	$storage = $htmlCacheOptions["STORAGE"] ?? false;

	if (in_array($storage, array("memcached", "memcached_cluster")))
	{
		if (extension_loaded("memcache"))
		{
			return new DataMemcachedStorage($cacheKey, $configuration, $htmlCacheOptions);
		}
		else
		{
			return null;
		}
	}
	else
	{
		return new DataFileStorage($cacheKey, $configuration, $htmlCacheOptions);
	}
}