eZ\Publish\Core\Persistence\Cache\LocationHandler::loadSubtreeIds PHP Method

loadSubtreeIds() public method

See also: eZ\Publish\SPI\Persistence\Content\Location\Handler::loadSubtreeIds
public loadSubtreeIds ( $locationId )
    public function loadSubtreeIds($locationId)
    {
        $cache = $this->cache->getItem('location', 'subtree', $locationId);
        $locationIds = $cache->get();
        if ($cache->isMiss()) {
            $this->logger->logCall(__METHOD__, array('location' => $locationId));
            $cache->set($locationIds = $this->persistenceHandler->locationHandler()->loadSubtreeIds($locationId))->save();
        }
        return $locationIds;
    }