• Модуль: perfmon
  • Путь к файлу: ~/bitrix/modules/perfmon/classes/general/keeper.php
  • Класс: CPerfomanceKeeper
  • Вызов: CPerfomanceKeeper::removeCaches
static function removeCaches($large_cache_size, &$arCacheDebug, &$arIncludeDebug)
{
	if (is_array($arCacheDebug))
	{
		foreach ($arCacheDebug as $i => $arCacheInfo)
		{
			if (
				(
					$arCacheInfo["cache_size"] > 0
					&& $arCacheInfo["cache_size"] < $large_cache_size
				) || (
					$arCacheInfo["operation"] != "W"
					&& $arCacheInfo["operation"] != "R"
				)
			)
			{
				unset($arCacheDebug[$i]);
			}
		}
	}

	if (is_array($arIncludeDebug))
	{
		foreach ($arIncludeDebug as $i => $ar)
		{
			if (array_key_exists("REL_PATH", $ar) && isset($ar["CACHE"]) && is_array($ar["CACHE"]))
			{
				foreach ($ar["CACHE"] as $N => $arCacheInfo)
				{
					if (
						(
							$arCacheInfo["cache_size"] > 0
							&& $arCacheInfo["cache_size"] < $large_cache_size
						) || (
							$arCacheInfo["operation"] != "W"
							&& $arCacheInfo["operation"] != "R"
						)
					)
					{
						unset($arIncludeDebug[$i]["CACHE"][$N]);
					}
				}
			}
		}
	}
}