• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblock.php
  • Класс: CAllIBlock
  • Вызов: CAllIBlock::CleanCache
static function CleanCache($ID)
{
	/** @global CCacheManager $CACHE_MANAGER */
	global $CACHE_MANAGER;

	$ID = intval($ID);
	if(CACHED_b_iblock !== false)
	{
		$bucket_size = intval(CACHED_b_iblock_bucket_size);
		if($bucket_size<=0) $bucket_size = 20;

		$bucket = intval($ID/$bucket_size);
		$cache_id = $bucket_size."iblock".$bucket;

		$CACHE_MANAGER->Clean($cache_id, "b_iblock");
	}
	IblockIblockTable::cleanCache();
}