• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/composite/responder.php
  • Класс: BitrixMainCompositeFileResponse
  • Вызов: FileResponse::getContents
public function getContents()
{
	if ($this->cacheFile === null)
	{
		return false;
	}

	if ($this->contents === null)
	{
		$this->contents = file_get_contents($this->cacheFile);
		if ($this->contents !== false &&
			(mb_strlen($this->contents) < 2500 || !preg_match("/^[a-f0-9]{32}$/", mb_substr($this->contents, -35, 32)))
		)
		{
			$this->contents = false;
		}
	}

	return $this->contents;
}