private function cleanCategoryCacheByIds(array $categoryIds)
    {
        $this->cacheContext->registerEntities(\Magento\Catalog\Model\Category::CACHE_TAG, $categoryIds);
        $this->eventManager->dispatch('clean_cache_by_tags', ['object' => $this->cacheContext]);
    }
private function cleanCategoryCacheByIds(array $categoryIds)
    {
        $this->cacheContext->registerEntities(\Magento\Catalog\Model\Category::CACHE_TAG, $categoryIds);
        $this->eventManager->dispatch('clean_cache_by_tags', ['object' => $this->cacheContext]);
    }
private function cleanCategoryCacheByIds ( array $ categoryIds ) { $ this -> cacheContext -> registerEntities ( \ Magento \ Catalog \ Model \ Category :: CACHE_TAG , $ categoryIds ) ; $ this -> eventManager -> dispatch ( 'clean_cache_by_tags' , [ 'object' => $ this -> cacheContext ] ) ; }
Clean cache of frontend pages based on category ids.

@param array $categoryIds Category Ids
Clean cache of frontend pages based on category ids .