|
@@ 191-195 (lines=5) @@
|
| 188 |
|
public function loadVersionInfo($contentId, $versionNo) |
| 189 |
|
{ |
| 190 |
|
$cacheItem = $this->cache->getItem("ez-content-version-info-${contentId}-${versionNo}"); |
| 191 |
|
if ($cacheItem->isHit()) { |
| 192 |
|
$this->logger->logCacheHit(['content' => $contentId, 'version' => $versionNo], 1); |
| 193 |
|
|
| 194 |
|
return $cacheItem->get(); |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
$this->logger->logCacheMiss(['content' => $contentId, 'version' => $versionNo], 1); |
| 198 |
|
$versionInfo = $this->persistenceHandler->contentHandler()->loadVersionInfo($contentId, $versionNo); |
|
@@ 307-311 (lines=5) @@
|
| 304 |
|
public function listVersions($contentId, $status = null, $limit = -1) |
| 305 |
|
{ |
| 306 |
|
$cacheItem = $this->cache->getItem("ez-content-${contentId}-version-list" . ($status ? "-byStatus-${status}" : '') . "-limit-{$limit}"); |
| 307 |
|
if ($cacheItem->isHit()) { |
| 308 |
|
$this->logger->logCacheHit(['content' => $contentId, 'status' => $status], 1); |
| 309 |
|
|
| 310 |
|
return $cacheItem->get(); |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
$this->logger->logCacheMiss(['content' => $contentId, 'status' => $status], 1); |
| 314 |
|
$versions = $this->persistenceHandler->contentHandler()->listVersions($contentId, $status, $limit); |