當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。