• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::chooseOffer
protected function chooseOffer($offers, $iblockId);

protected function initResultCache()
{
	if (
		$this->arParams['CONVERT_CURRENCY'] === 'Y'
		&& !empty($this->storage['CURRENCY_LIST'])
		&& defined('BX_COMP_MANAGED_CACHE')
	)
	{
		$this->storage['CURRENCY_LIST'][$this->storage['CONVERT_CURRENCY']['CURRENCY_ID']] = $this->storage['CONVERT_CURRENCY']['CURRENCY_ID'];
		$taggedCache = MainApplication::getInstance()->getTaggedCache();
		foreach ($this->storage['CURRENCY_LIST'] as $oneCurrency)
		{
			$taggedCache->registerTag('currency_id_'.$oneCurrency);
		}

		unset($oneCurrency);
		unset($taggedCache);
	}

	unset($this->storage['CURRENCY_LIST']);

	$this->setResultCacheKeys($this->getCacheKeys());
}