|
@@ 216-220 (lines=5) @@
|
| 213 |
|
public function loadVersionInfo($contentId, $versionNo) |
| 214 |
|
{ |
| 215 |
|
$cacheItem = $this->cache->getItem("ez-content-version-info-${contentId}-${versionNo}"); |
| 216 |
|
if ($cacheItem->isHit()) { |
| 217 |
|
$this->logger->logCacheHit(['content' => $contentId, 'version' => $versionNo]); |
| 218 |
|
|
| 219 |
|
return $cacheItem->get(); |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
$this->logger->logCacheMiss(['content' => $contentId, 'version' => $versionNo]); |
| 223 |
|
$versionInfo = $this->persistenceHandler->contentHandler()->loadVersionInfo($contentId, $versionNo); |
|
@@ 332-336 (lines=5) @@
|
| 329 |
|
public function listVersions($contentId, $status = null, $limit = -1) |
| 330 |
|
{ |
| 331 |
|
$cacheItem = $this->cache->getItem("ez-content-${contentId}-version-list" . ($status ? "-byStatus-${status}" : '') . "-limit-{$limit}"); |
| 332 |
|
if ($cacheItem->isHit()) { |
| 333 |
|
$this->logger->logCacheHit(['content' => $contentId, 'status' => $status]); |
| 334 |
|
|
| 335 |
|
return $cacheItem->get(); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
$this->logger->logCacheMiss(['content' => $contentId, 'status' => $status]); |
| 339 |
|
$versions = $this->persistenceHandler->contentHandler()->listVersions($contentId, $status, $limit); |