本文整理汇总了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));
}
}