Commit 6fb30833 by Hannes Peterseim

just a bugfix

parent 31318ba4
......@@ -56,10 +56,10 @@ class cacheService
if (!$this->denyForCheckout() && !$this->denyForAdminArea() && !$this->denyByParam()) {
if ($this->cS === null) {
if ($oConfig->getConfigParam('oorCachingBackend') == 'Memcache') {
if ($this->myConfig->getConfigParam('oorCachingBackend') == 'Memcache') {
$this->cS = new memcacheConnector();
} else {
if ($oConfig->getConfigParam('oorCachingBackend') == 'Redis') {
if ($this->myConfig->getConfigParam('oorCachingBackend') == 'Redis') {
$this->cS = new redisConnector();
}
}
......@@ -71,7 +71,7 @@ class cacheService
$dataType .= "_{$aLimit[1]}/{$aLimit[0]}";
}
$cSKey = $dataType . '_' . $myConfig->getShopId() . '_' . md5($sSql);
$cSKey = $dataType . '_' . $this->myConfig->getShopId() . '_' . md5($sSql);
if ($this->cS->get($cSKey)) {
if ($this->myConfig->getConfigParam('oorShowDebug')) {
......@@ -85,7 +85,7 @@ class cacheService
$aData = $this->_execQuery($getType, $sSql, $aLimit);
$this->cS->set($cSKey, serialize($aData), $oConfig->getConfigParam('oor' . ucfirst($dataType) . 'Ttl'));
$this->cS->set($cSKey, serialize($aData), $this->myConfig->getConfigParam('oor' . ucfirst($dataType) . 'Ttl'));
}
} else {
if ($this->myConfig->getConfigParam('oorShowDebug')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment