• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblock.php
  • Класс: CWebDavIblock
  • Вызов: CWebDavIblock::GetCache
function GetCache($id, $dirName, $useRootSection = true)
{
	$res = array( "result" => false, "data" => null );
	if(defined("BX_COMP_MANAGED_CACHE") && $this->CACHE_OBJ)
	{
		$cachePath = ($useRootSection ? $this->CACHE_PATH : $this->cachePathBase) . $dirName;
		if($this->CACHE_OBJ->InitCache($this->CACHE_TIME, $id, $cachePath))
		{
			$res["result"] = true;
			$res["data"] = $this->CACHE_OBJ->GetVars();
		}
	}
	return $res;
}