|
@@ 72-76 (lines=5) @@
|
| 69 |
|
return $this->getMultipleCacheItems( |
| 70 |
|
$ids, |
| 71 |
|
'ez-language-', |
| 72 |
|
function (array $cacheMissIds) { |
| 73 |
|
$this->logger->logCall(__CLASS__ . '::loadList', ['languages' => $cacheMissIds]); |
| 74 |
|
|
| 75 |
|
return $this->persistenceHandler->contentLanguageHandler()->loadList($cacheMissIds); |
| 76 |
|
}, |
| 77 |
|
function (Language $language) { |
| 78 |
|
return ['language-' . $language->id]; |
| 79 |
|
} |
|
@@ 111-115 (lines=5) @@
|
| 108 |
|
return $this->getMultipleCacheItems( |
| 109 |
|
$languageCodes, |
| 110 |
|
'ez-language-code-', |
| 111 |
|
function (array $cacheMissIds) { |
| 112 |
|
$this->logger->logCall(__CLASS__ . '::loadListByLanguageCodes', ['languages' => $cacheMissIds]); |
| 113 |
|
|
| 114 |
|
return $this->persistenceHandler->contentLanguageHandler()->loadListByLanguageCodes($cacheMissIds); |
| 115 |
|
}, |
| 116 |
|
function (Language $language) { |
| 117 |
|
return ['language-' . $language->id]; |
| 118 |
|
} |