• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/managedcache.php
  • Класс: BitrixMainDataManagedCache
  • Вызов: ManagedCache::cleanDir
public function cleanDir($tableId)
{
	$dbType = static::getDbType();
	$strPath = $dbType."/".$tableId;
	foreach ($this->cachePath as $uniqueId => $Path)
	{
		if ($Path == $strPath)
		{
			unset($this->cache[$uniqueId]);
			unset($this->cache_init[$uniqueId]);
			unset($this->cachePath[$uniqueId]);
			unset($this->vars[$uniqueId]);
		}
	}
	$obCache = Cache::createInstance();
	$obCache->cleanDir($dbType."/".$tableId, "managed_cache");
}