• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/medialib.php
  • Класс: CMedialib
  • Вызов: CMedialib::ClearCache
static function ClearCache($arPath = false)
{
	if ($arPath === false)
		$arPath = array('types');
	elseif (!is_array($arPath))
		$arPath = array($arPath);

	if (is_array($arPath) && count($arPath) > 0)
	{
		$cache = new CPHPCache;
		foreach($arPath as $path)
			if ($path != '')
				$cache->CleanDir(self::$cachePath.$path);
	}
}