• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Operation/Action/ClearCache.php
  • Класс: Bitrix\Crm\Service\Operation\Action\ClearCache
  • Вызов: ClearCache::process
public function process(Item $item): Result
{
	$cacheManager = $this->getCacheManager();

	if (!$cacheManager)
	{
		return new Result();
	}

	if ($this->directoryName)
	{
		/** @var \CCacheManager $cacheManager */
		$cacheManager->CleanDir($this->directoryName);
		$cacheManager->ClearByTag($this->directoryName);
	}

	if ($this->isDependantFieldsChanged($item))
	{
		$tag = $this->getTag($item);
		if ($tag)
		{
			$cacheManager->ClearByTag($tag);
		}
	}

	return new Result();
}