Commit 5d5b41f9 authored by Hannes Peterseim's avatar Hannes Peterseim
Browse files

Finish v1.2.1

parents 96c65108 3bd95757
......@@ -22,7 +22,7 @@ $aModule = array(
'en' => 'Extends oxid shop with a memcache caching layer, reduces therefor the querycount and relieves the database.<br><br>More peaces of software under <a href="https://www.petit-souris.de" target="_blank">https://www.petit-souris.de</a> or <a href="https://gitlab.petit-souris.de" target="_blank">https://gitlab.petit-souris.de</a>, questions, wishes or job offers goes to <a href="mailto:oxid@petit-souris.de">oxid@petit-souris.de</a>.<br><a href="https://paypal.me/hpeterseim/1" target=""blank">Spend an euro if you want.</a>'
),
'thumbnail' => 'views/admin/image.php',
'version' => '1.2.0',
'version' => '1.2.1',
'author' => 'Hannes Peterseim',
'email' => 'oxid@petit-souris.de',
'url' => 'https://www.petit-souris.de',
......
......@@ -18,12 +18,7 @@ class oxOnRoidsOxContentList extends oxOnRoidsOxContentList_parent
/**
* @var null
*/
private $myConfig = null;
/**
* @var null
*/
private $mmC = null;
private $cS = null;
/**
......
......@@ -22,7 +22,7 @@ class oxOnRoidsOxList extends oxOnRoidsOxList_parent
/**
* @var null
*/
private $mmC = null;
private $cS = null;
/**
......@@ -33,27 +33,27 @@ class oxOnRoidsOxList extends oxOnRoidsOxList_parent
public function selectString($sSql)
{
$this->mmC = new memcacheConnector();
$this->cS = new cacheService();
$this->myConfig = oxRegistry::getConfig();
if ($this->mmC) {
if ($this->cS) {
if ($this->_aSqlLimit[0] || $this->_aSqlLimit[1]) {
$mmCKey = 'list_' . $this->getConfig()->getShopId() . '_' . md5($sSql . serialize($this->_aSqlLimit));
$cKey = 'list_' . $this->getConfig()->getShopId() . '_' . md5($sSql . serialize($this->_aSqlLimit));
} else {
$mmCKey = 'list_' . $this->getConfig()->getShopId() . '_' . md5($sSql);
$cKey = 'list_' . $this->getConfig()->getShopId() . '_' . md5($sSql);
}
if ($this->mmC->get($mmCKey)) {
if ($this->cS->get($cKey)) {
if ($this->myConfig->getConfigParam('oorShowDebug')) {
echo 'list_hit';
}
$this->_SelectStringRecover(unserialize($this->mmC->get($mmCKey)));
$this->_SelectStringRecover(unserialize($this->cS->get($cKey)));
} else {
if ($this->myConfig->getConfigParam('oorShowDebug')) {
echo 'list_fill';
}
$this->mmC->set($mmCKey, serialize($this->_selectStringGet($sSql)), $this->myConfig->getConfigParam('oorContentTtl'));
$this->cS->set($cKey, serialize($this->_selectStringGet($sSql)), $this->myConfig->getConfigParam('oorContentTtl'));
}
} 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