protected function clearListByCategory($arAttachedIDList)
    {
        if ($this->sRelationName != 'additional_category') {
            return;
        }

        foreach ($arAttachedIDList as $iCategoryID) {
            BrandListStore::instance()->category->clear($iCategoryID);
            ProductListStore::instance()->category->clear($iCategoryID);

            $obCategoryItem = CategoryItem::make($iCategoryID);
            if ($obCategoryItem->isNotEmpty()) {
                $obCategoryItem->clearProductCount();
            }
        }
    }
protected function clearListByCategory($arAttachedIDList)
    {
        if ($this->sRelationName != 'additional_category') {
            return;
        }

        foreach ($arAttachedIDList as $iCategoryID) {
            BrandListStore::instance()->category->clear($iCategoryID);
            ProductListStore::instance()->category->clear($iCategoryID);

            $obCategoryItem = CategoryItem::make($iCategoryID);
            if ($obCategoryItem->isNotEmpty()) {
                $obCategoryItem->clearProductCount();
            }
        }
    }
protected function clearListByCategory ( $ arAttachedIDList ) { if ( $ this -> sRelationName != 'additional_category' ) { return ; } foreach ( $ arAttachedIDList as $ iCategoryID ) { BrandListStore :: instance ( ) -> category -> clear ( $ iCategoryID ) ; ProductListStore :: instance ( ) -> category -> clear ( $ iCategoryID ) ; $ obCategoryItem = CategoryItem :: make ( $ iCategoryID ) ; if ( $ obCategoryItem -> isNotEmpty ( ) ) { $ obCategoryItem -> clearProductCount ( ) ; } } }
Clear cached product list by category ID
@param array $arAttachedIDList
Clear cached product list by category ID