eZ/Publish/Core/Persistence/Cache/ContentHandler.php 2 locations
|
@@ 80-90 (lines=11) @@
|
| 77 |
|
/** |
| 78 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Handler::loadContentInfo |
| 79 |
|
*/ |
| 80 |
|
public function loadContentInfo($contentId) |
| 81 |
|
{ |
| 82 |
|
$cache = $this->cache->getItem('content', 'info', $contentId); |
| 83 |
|
$contentInfo = $cache->get(); |
| 84 |
|
if ($cache->isMiss()) { |
| 85 |
|
$this->logger->logCall(__METHOD__, array('content' => $contentId)); |
| 86 |
|
$cache->set($contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($contentId)); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
return $contentInfo; |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
/** |
| 93 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Handler::loadContentInfoByRemoteId |
|
@@ 95-105 (lines=11) @@
|
| 92 |
|
/** |
| 93 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Handler::loadContentInfoByRemoteId |
| 94 |
|
*/ |
| 95 |
|
public function loadContentInfoByRemoteId($remoteId) |
| 96 |
|
{ |
| 97 |
|
$cache = $this->cache->getItem('content', 'info', 'remoteId', $remoteId); |
| 98 |
|
$contentInfo = $cache->get(); |
| 99 |
|
if ($cache->isMiss()) { |
| 100 |
|
$this->logger->logCall(__METHOD__, array('content' => $remoteId)); |
| 101 |
|
$cache->set($contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfoByRemoteId($remoteId)); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
return $contentInfo; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Handler::loadVersionInfo |
eZ/Publish/Core/Persistence/Cache/ContentLanguageHandler.php 1 location
|
@@ 50-60 (lines=11) @@
|
| 47 |
|
/** |
| 48 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Language\Handler::load |
| 49 |
|
*/ |
| 50 |
|
public function load($id) |
| 51 |
|
{ |
| 52 |
|
$cache = $this->cache->getItem('language', $id); |
| 53 |
|
$language = $cache->get(); |
| 54 |
|
if ($cache->isMiss()) { |
| 55 |
|
$this->logger->logCall(__METHOD__, array('language' => $id)); |
| 56 |
|
$cache->set($language = $this->persistenceHandler->contentLanguageHandler()->load($id)); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
return $language; |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
/** |
| 63 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Language\Handler::loadByLanguageCode |
eZ/Publish/Core/Persistence/Cache/ContentTypeHandler.php 1 location
|
@@ 73-83 (lines=11) @@
|
| 70 |
|
/** |
| 71 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Type\Handler::loadGroup |
| 72 |
|
*/ |
| 73 |
|
public function loadGroup($groupId) |
| 74 |
|
{ |
| 75 |
|
$cache = $this->cache->getItem('contentTypeGroup', $groupId); |
| 76 |
|
$group = $cache->get(); |
| 77 |
|
if ($cache->isMiss()) { |
| 78 |
|
$this->logger->logCall(__METHOD__, array('group' => $groupId)); |
| 79 |
|
$cache->set($group = $this->persistenceHandler->contentTypeHandler()->loadGroup($groupId)); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
return $group; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/** |
| 86 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Type\Handler::loadGroupByIdentifier |
eZ/Publish/Core/Persistence/Cache/LocationHandler.php 2 locations
|
@@ 26-36 (lines=11) @@
|
| 23 |
|
/** |
| 24 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Location\Handler::load |
| 25 |
|
*/ |
| 26 |
|
public function load($locationId) |
| 27 |
|
{ |
| 28 |
|
$cache = $this->cache->getItem('location', $locationId); |
| 29 |
|
$location = $cache->get(); |
| 30 |
|
if ($cache->isMiss()) { |
| 31 |
|
$this->logger->logCall(__METHOD__, array('location' => $locationId)); |
| 32 |
|
$cache->set($location = $this->persistenceHandler->locationHandler()->load($locationId)); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
return $location; |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
/** |
| 39 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Location\Handler::loadSubtreeIds |
|
@@ 41-54 (lines=14) @@
|
| 38 |
|
/** |
| 39 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Location\Handler::loadSubtreeIds |
| 40 |
|
*/ |
| 41 |
|
public function loadSubtreeIds($locationId) |
| 42 |
|
{ |
| 43 |
|
$cache = $this->cache->getItem('location', 'subtree', $locationId); |
| 44 |
|
$locationIds = $cache->get(); |
| 45 |
|
|
| 46 |
|
if ($cache->isMiss()) { |
| 47 |
|
$this->logger->logCall(__METHOD__, array('location' => $locationId)); |
| 48 |
|
$cache->set( |
| 49 |
|
$locationIds = $this->persistenceHandler->locationHandler()->loadSubtreeIds($locationId) |
| 50 |
|
); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
return $locationIds; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* @see \eZ\Publish\SPI\Persistence\Content\Location\Handler::loadLocationsByContent |
eZ/Publish/Core/Persistence/Cache/ObjectStateHandler.php 2 locations
|
@@ 38-48 (lines=11) @@
|
| 35 |
|
/** |
| 36 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::loadGroup |
| 37 |
|
*/ |
| 38 |
|
public function loadGroup($groupId) |
| 39 |
|
{ |
| 40 |
|
$cache = $this->cache->getItem('objectstategroup', $groupId); |
| 41 |
|
$group = $cache->get(); |
| 42 |
|
if ($cache->isMiss()) { |
| 43 |
|
$this->logger->logCall(__METHOD__, array('groupId' => $groupId)); |
| 44 |
|
$cache->set($group = $this->persistenceHandler->objectStateHandler()->loadGroup($groupId)); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
return $group; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::loadGroupByIdentifier |
|
@@ 163-173 (lines=11) @@
|
| 160 |
|
/** |
| 161 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::load |
| 162 |
|
*/ |
| 163 |
|
public function load($stateId) |
| 164 |
|
{ |
| 165 |
|
$cache = $this->cache->getItem('objectstate', $stateId); |
| 166 |
|
$objectState = $cache->get(); |
| 167 |
|
if ($cache->isMiss()) { |
| 168 |
|
$this->logger->logCall(__METHOD__, array('stateId' => $stateId)); |
| 169 |
|
$cache->set($objectState = $this->persistenceHandler->objectStateHandler()->load($stateId)); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
return $objectState; |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
/** |
| 176 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::loadByIdentifier |
eZ/Publish/Core/Persistence/Cache/SectionHandler.php 1 location
|
@@ 51-61 (lines=11) @@
|
| 48 |
|
/** |
| 49 |
|
* @see eZ\Publish\SPI\Persistence\Content\Section\Handler |
| 50 |
|
*/ |
| 51 |
|
public function load($id) |
| 52 |
|
{ |
| 53 |
|
$cache = $this->cache->getItem('section', $id); |
| 54 |
|
$section = $cache->get(); |
| 55 |
|
if ($cache->isMiss()) { |
| 56 |
|
$this->logger->logCall(__METHOD__, array('section' => $id)); |
| 57 |
|
$cache->set($section = $this->persistenceHandler->sectionHandler()->load($id)); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
return $section; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |
| 64 |
|
* Get all section data. |
eZ/Publish/Core/Persistence/Cache/UrlAliasHandler.php 1 location
|
@@ 227-239 (lines=13) @@
|
| 224 |
|
/** |
| 225 |
|
* @see eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler::loadUrlAlias |
| 226 |
|
*/ |
| 227 |
|
public function loadUrlAlias($id) |
| 228 |
|
{ |
| 229 |
|
// Look for url alias cache |
| 230 |
|
$cache = $this->cache->getItem('urlAlias', $id); |
| 231 |
|
$urlAlias = $cache->get(); |
| 232 |
|
if ($cache->isMiss()) { |
| 233 |
|
$this->logger->logCall(__METHOD__, array('alias' => $id)); |
| 234 |
|
$urlAlias = $this->persistenceHandler->urlAliasHandler()->loadUrlAlias($id); |
| 235 |
|
$cache->set($urlAlias); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
return $urlAlias; |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
/** |
| 242 |
|
* @see eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler::locationMoved |