[*] Classes: refactoring of cache classes

This commit is contained in:
rMalie
2011-10-10 14:45:27 +00:00
parent d02fd32e46
commit 9c17d2a9e7
5 changed files with 512 additions and 321 deletions
+2 -2
View File
@@ -443,11 +443,11 @@ abstract class DbCore
{
$nrows = $this->_numRows($this->result);
if (_PS_CACHE_ENABLED_)
Cache::getInstance()->setNumRows(md5($this->last_query), $nrows);
Cache::getInstance()->set(md5($this->last_query).'_nrows', $nrows);
return $nrows;
}
else if (_PS_CACHE_ENABLED_ && $this->last_cached)
return Cache::getInstance()->getNumRows(md5($this->last_query));
return Cache::getInstance()->get(md5($this->last_query).'_nrows');
}
/**