protected function loadFromCache()
{
$key = $this->calculateCacheKey();
if (!$this->container->getCache()->contains($key)) {
return false;
}
// Perform loading now.
$data = json_decode($this->container->getCache()->fetch($key), true);
if (empty($data)) {
return false;
}
$this->backendMenu = $data['backendMenu'];
$this->languageStrings = $data['languageStrings'];
return true;
}