• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component.php
  • Класс: CBitrixComponent
  • Вызов: CBitrixComponent::clearResultCache
public function clearResultCache($additionalCacheID = false, $cachePath = false)
{
	global $CACHE_MANAGER;

	if (!$this->__bInited)
		return null;

	$this->__cacheID = $this->getCacheID($additionalCacheID);

	$this->__cachePath = $cachePath;
	if ($this->__cachePath === false)
		$this->__cachePath = $CACHE_MANAGER->getCompCachePath($this->__relativePath);

	$cache = new CPHPCache();
	$cache->clean($this->__cacheID, $this->__cachePath);
}