• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/composite/page.php
  • Класс: BitrixMainCompositePage
  • Вызов: Page::write
public function write($content, $md5)
{
	if ($this->storage === null)
	{
		return false;
	}

	$cacheSize = $this->storage->getSize();
	$written = $this->storage->write($content."", $md5);
	if ($written !== false && $this->storage->shouldCountQuota())
	{
		$delta = $cacheSize !== false ? $written - $cacheSize : $written;
		if ($delta !== 0)
		{
			Helper::updateCacheFileSize($delta);
		}
	}

	return $written;
}