- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/cache_files_cleaner.php
- Класс: CFileCacheCleaner
- Вызов: CFileCacheCleaner::__construct
function __construct($CacheType)
{
global $DB;
$this->_CacheType = $CacheType;
switch($this->_CacheType)
{
case "menu":
$this->_arPath = array(
BX_PERSONAL_ROOT.'/managed_cache/'.$DB->type.'/menu/',
);
break;
case "managed":
$this->_arPath = array(
BX_PERSONAL_ROOT.'/managed_cache/',
BX_PERSONAL_ROOT.'/stack_cache/',
);
break;
case "html":
$this->_arPath = array(
BX_PERSONAL_ROOT.'/html_pages/',
);
break;
case "expired":
$this->_arPath = array(
BX_PERSONAL_ROOT.'/cache/',
BX_PERSONAL_ROOT.'/managed_cache/',
BX_PERSONAL_ROOT.'/stack_cache/',
);
break;
default:
$this->_arPath = array(
BX_PERSONAL_ROOT.'/cache/',
BX_PERSONAL_ROOT.'/managed_cache/',
BX_PERSONAL_ROOT.'/stack_cache/',
BX_PERSONAL_ROOT.'/html_pages/',
);
break;
}
}