Update MemcacheEngine.php

adding $limit=0 to clear function so it deletes all the keys for real
This commit is contained in:
Ujwal Trivedi 2014-02-17 02:51:00 -05:00
parent 4f424007fa
commit 91ef655854

View file

@ -205,13 +205,13 @@ class MemcacheEngine extends CacheEngine {
if ($check) {
return true;
}
foreach ($this->_Memcache->getExtendedStats('slabs') as $slabs) {
foreach ($this->_Memcache->getExtendedStats('slabs', $limit=0) as $slabs) {
foreach (array_keys($slabs) as $slabId) {
if (!is_numeric($slabId)) {
continue;
}
foreach ($this->_Memcache->getExtendedStats('cachedump', $slabId) as $stats) {
foreach ($this->_Memcache->getExtendedStats('cachedump', $slabId, $limit=0) as $stats) {
if (!is_array($stats)) {
continue;
}