public function getChildrenCategories($idList, int $counter = 0)
    {
        $cacheIdentifier = sha1('children' . $idList);

        $entry = $this->cache->get($cacheIdentifier);
        if (!$entry) {
            $entry = $this->getChildrenCategoriesRecursive($idList, $counter);
            $this->cache->set($cacheIdentifier, $entry);
        }

        return $entry;
    }
public function getChildrenCategories($idList, int $counter = 0)
    {
        $cacheIdentifier = sha1('children' . $idList);

        $entry = $this->cache->get($cacheIdentifier);
        if (!$entry) {
            $entry = $this->getChildrenCategoriesRecursive($idList, $counter);
            $this->cache->set($cacheIdentifier, $entry);
        }

        return $entry;
    }
public function getChildrenCategories ( $ idList , int $ counter = 0 ) { $ cacheIdentifier = sha1 ( 'children' . $ idList ) ; $ entry = $ this -> cache -> get ( $ cacheIdentifier ) ; if ( ! $ entry ) { $ entry = $ this -> getChildrenCategoriesRecursive ( $ idList , $ counter ) ; $ this -> cache -> set ( $ cacheIdentifier , $ entry ) ; } return $ entry ; }
Get child categories by calling recursive function
and using the caching framework to save some queries

@param string $idList list of category ids to start
@param int $counter
@return string comma separated list of category ids
Get child categories by calling recursive function and using the caching framework to save some queries