// Order::getHistory() Fix cache problem
This commit is contained in:
@@ -458,7 +458,7 @@ class OrderCore extends ObjectModel
|
|||||||
$shipped = true;
|
$shipped = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset(self::$_historyCache[$this->id.'_'.$id_order_state]) || $no_hidden)
|
if (!isset(self::$_historyCache[$this->id.'_'.$id_order_state.'_'.$filters]) || $no_hidden)
|
||||||
{
|
{
|
||||||
$id_lang = $id_lang ? (int)($id_lang) : 'o.`id_lang`';
|
$id_lang = $id_lang ? (int)($id_lang) : 'o.`id_lang`';
|
||||||
$result = Db::getInstance()->executeS('
|
$result = Db::getInstance()->executeS('
|
||||||
@@ -478,9 +478,9 @@ class OrderCore extends ObjectModel
|
|||||||
ORDER BY oh.date_add DESC, oh.id_order_history DESC');
|
ORDER BY oh.date_add DESC, oh.id_order_history DESC');
|
||||||
if ($no_hidden)
|
if ($no_hidden)
|
||||||
return $result;
|
return $result;
|
||||||
self::$_historyCache[$this->id.'_'.$id_order_state] = $result;
|
self::$_historyCache[$this->id.'_'.$id_order_state.'_'.$filters] = $result;
|
||||||
}
|
}
|
||||||
return self::$_historyCache[$this->id.'_'.$id_order_state];
|
return self::$_historyCache[$this->id.'_'.$id_order_state.'_'.$filters];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getProductsDetail()
|
public function getProductsDetail()
|
||||||
|
|||||||
Reference in New Issue
Block a user