function Clean($uniq_str, $initdir = false, $basedir = "cache") { if (is_object($this) && is_object($this->_cache)) { $basedir = BX_PERSONAL_ROOT . "/" . $basedir . "/"; $filename = CPageCache::GetPath($uniq_str); if (\Bitrix\Main\Data\Cache::getShowCacheStat()) { \Bitrix\Main\Diag\CacheTracker::add(0, "", $basedir, $initdir, "/" . $filename, "C"); } return $this->_cache->clean($basedir, $initdir, "/" . $filename); } else { $obCache = new CPageCache(); return $obCache->Clean($uniq_str, $initdir, $basedir); } }
function Clean($uniq_str, $initdir = false, $basedir = "cache") { if (is_object($this) && is_object($this->_cache)) { $basedir = BX_PERSONAL_ROOT . "/" . $basedir . "/"; $filename = CPageCache::GetPath($uniq_str); return $this->_cache->clean($basedir, $initdir, "/" . $filename); } else { $obCache = new CPageCache(); return $obCache->Clean($uniq_str, $initdir, $basedir); } }