本文整理匯總了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");
示例2: checkDiscountCache
protected function checkDiscountCache()
{
$this->cnt++;
if (100 <= $this->cnt) {
$this->cnt = 0;
\CCatalogDiscount::ClearDiscountCache(array('PRODUCT' => true, 'SECTIONS' => true, 'PROPERTIES' => true));
}
}