public function clearProductCount()
    {
        $arCacheTag = [static::class];
        $sCacheKey = 'product_count_'.$this->id;

        CCache::clear($arCacheTag, $sCacheKey);
        ItemStorage::clear(static::class, $this->id);

        $obParentItem = $this->parent;
        if ($obParentItem->isEmpty()) {
            return;
        }

        $obParentItem->clearProductCount();
    }
public function clearProductCount()
    {
        $arCacheTag = [static::class];
        $sCacheKey = 'product_count_'.$this->id;

        CCache::clear($arCacheTag, $sCacheKey);
        ItemStorage::clear(static::class, $this->id);

        $obParentItem = $this->parent;
        if ($obParentItem->isEmpty()) {
            return;
        }

        $obParentItem->clearProductCount();
    }
public function clearProductCount ( ) { $ arCacheTag = [ static :: class ] ; $ sCacheKey = 'product_count_' . $ this -> id ; CCache :: clear ( $ arCacheTag , $ sCacheKey ) ; ItemStorage :: clear ( static :: class , $ this -> id ) ; $ obParentItem = $ this -> parent ; if ( $ obParentItem -> isEmpty ( ) ) { return ; } $ obParentItem -> clearProductCount ( ) ; }
Clear product count cache
Clear product count cache