コード例 #1
0
ファイル: component.php プロジェクト: rasuldev/torino
        unset($arOffers);
    }
    if ('Y' == $arParams['CONVERT_CURRENCY'] && !empty($currencyList) && defined("BX_COMP_MANAGED_CACHE")) {
        $currencyList[$arConvertParams['CURRENCY_ID']] = $arConvertParams['CURRENCY_ID'];
        $CACHE_MANAGER->StartTagCache($this->GetCachePath());
        foreach ($currencyList as &$oneCurrency) {
            $CACHE_MANAGER->RegisterTag('currency_id_' . $oneCurrency);
        }
        unset($oneCurrency);
        $CACHE_MANAGER->EndTagCache();
    }
    unset($currencyList);
    $this->SetResultCacheKeys(array("ID", "NAV_CACHED_DATA", $arParams["META_KEYWORDS"], $arParams["META_DESCRIPTION"], $arParams["BROWSER_TITLE"], $arParams["BACKGROUND_IMAGE"], "NAME", "PATH", "IBLOCK_SECTION_ID", "IPROPERTY_VALUES", "ITEMS_TIMESTAMP_X", 'BACKGROUND_IMAGE'));
    $this->IncludeComponentTemplate();
    if ($bCatalog && $boolNeedCatalogCache) {
        CCatalogDiscount::ClearDiscountCache(array('PRODUCT' => true, 'SECTIONS' => true, 'PROPERTIES' => true));
    }
}
$arTitleOptions = null;
if ($USER->IsAuthorized()) {
    if ($APPLICATION->GetShowIncludeAreas() || is_object($INTRANET_TOOLBAR) && $arParams["INTRANET_TOOLBAR"] !== "N" || $arParams["SET_TITLE"] || isset($arResult[$arParams["BROWSER_TITLE"]])) {
        if (Loader::includeModule("iblock")) {
            $UrlDeleteSectionButton = "";
            if ($arResult["IBLOCK_SECTION_ID"] > 0) {
                $rsSection = CIBlockSection::GetList(array(), array("=ID" => $arResult["IBLOCK_SECTION_ID"]), false, array("SECTION_PAGE_URL"));
                $rsSection->SetUrlTemplates("", $arParams["SECTION_URL"]);
                $arSection = $rsSection->GetNext();
                $UrlDeleteSectionButton = $arSection["SECTION_PAGE_URL"];
            }
            if (empty($UrlDeleteSectionButton)) {
                $url_template = CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "LIST_PAGE_URL");
コード例 #2
0
ファイル: exportoffer.php プロジェクト: andy-profi/bxApiDocs
 protected function checkDiscountCache()
 {
     $this->cnt++;
     if (100 <= $this->cnt) {
         $this->cnt = 0;
         \CCatalogDiscount::ClearDiscountCache(array('PRODUCT' => true, 'SECTIONS' => true, 'PROPERTIES' => true));
     }
 }