• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/statichtmlcache.php
  • Класс: BitrixMainDataStaticHtmlCache
  • Вызов: StaticHtmlCache::applyComponentFrameMode
static function applyComponentFrameMode($context = "")
{
	if (
		defined("USE_HTML_STATIC_CACHE")
		&& USE_HTML_STATIC_CACHE === true
		&& BitrixMainPageFrame::getInstance()->getCurrentDynamicId() === false
	)
	{
		$staticHtmlCache = static::getInstance();
		if (!$staticHtmlCache->isVotingEnabled())
		{
			return;
		}

		$staticHtmlCache->markNonCacheable();

		if (defined("BX_COMPOSITE_DEBUG") && BX_COMPOSITE_DEBUG === true)
		{
			AddMessage2Log(
				"Reason: ".$context."n".
				"Request URI: ".$_SERVER["REQUEST_URI"]."n".
				"Script: ".(isset($_SERVER["REAL_FILE_PATH"]) ? $_SERVER["REAL_FILE_PATH"] : $_SERVER["SCRIPT_NAME"]),
				"Composite was rejected"
			);
		}
	}

}