当前位置: 首页>>代码示例>>PHP>>正文


PHP CCatalogDiscount::ClearDiscountCache方法代码示例

本文整理汇总了PHP中CCatalogDiscount::ClearDiscountCache方法的典型用法代码示例。如果您正苦于以下问题:PHP CCatalogDiscount::ClearDiscountCache方法的具体用法?PHP CCatalogDiscount::ClearDiscountCache怎么用?PHP CCatalogDiscount::ClearDiscountCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCatalogDiscount的用法示例。


在下文中一共展示了CCatalogDiscount::ClearDiscountCache方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: unset

        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");
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php

示例2: checkDiscountCache

 protected function checkDiscountCache()
 {
     $this->cnt++;
     if (100 <= $this->cnt) {
         $this->cnt = 0;
         \CCatalogDiscount::ClearDiscountCache(array('PRODUCT' => true, 'SECTIONS' => true, 'PROPERTIES' => true));
     }
 }
开发者ID:andy-profi,项目名称:bxApiDocs,代码行数:8,代码来源:exportoffer.php


注:本文中的CCatalogDiscount::ClearDiscountCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。