- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/data/cache.php
- Класс: BitrixMainDataCache
- Вызов: Cache::cleanDir
public function cleanDir($initDir = false, $baseDir = 'cache')
{
$personalRoot = MainApplication::getPersonalRoot();
$baseDir = $personalRoot . '/' . $baseDir . '/';
if (static::$showCacheStat)
{
DiagCacheTracker::add(0, "", $baseDir, $initDir, "", "C");
}
return $this->cacheEngine->clean($baseDir, $initDir);
}