Если они в третьей ветке не поменяли полностью логику работы с кешем, то это два разных кеша. Он опрашивает кеш language, а сохраняет потом в кеш catalog.language
У меня хорошо. Вот он полностью (из 3.0.3.6) opencart-3.0.3.6/upload/catalog/model/localisation/language.php
<?php
class ModelLocalisationLanguage extends Model {
public function getLanguage($language_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "language WHERE language_id = '" . (int)$language_id . "'");
return $query->row;
}
public function getLanguages() {
$language_data = $this->cache->get('language');
if (!$language_data) {
$language_data = array();
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "language WHERE status = '1' ORDER BY sort_order, name");
foreach ($query->rows as $result) {
$language_data[$result['code']] = array(
'language_id' => $result['language_id'],
'name' => $result['name'],
'code' => $result['code'],
'locale' => $result['locale'],
'image' => $result['image'],
'directory' => $result['directory'],
'sort_order' => $result['sort_order'],
'status' => $result['status']
);
}
$this->cache->set('catalog.language', $language_data);
}
return $language_data;
}
}
Можете на гитхабе посмотреть https://github.com/opencart/opencart/blob/3.0.x.x_Google_Pay/upload/catalog/model/localisation/language.php
Вот он же в ocStore ocStore-3.0.2.0/public/catalog/model/localisation/language.php
<?php
class ModelLocalisationLanguage extends Model {
public function getLanguage($language_id) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "language WHERE language_id = '" . (int)$language_id . "'");
return $query->row;
}
public function getLanguages() {
$language_data = $this->cache->get('language');
if (!$language_data) {
$language_data = array();
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "language WHERE status = '1' ORDER BY sort_order, name");
foreach ($query->rows as $result) {
$language_data[$result['code']] = array(
'language_id' => $result['language_id'],
'name' => $result['name'],
'code' => $result['code'],
'locale' => $result['locale'],
'image' => $result['image'],
'directory' => $result['directory'],
'sort_order' => $result['sort_order'],
'status' => $result['status']
);
}
$this->cache->set('catalog.language', $language_data);
}
return $language_data;
}
}