mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Update MemcacheEngine.php
adding $limit=0 to clear function so it deletes all the keys for real
This commit is contained in:
parent
4f424007fa
commit
91ef655854
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue