Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix delete processing
  • Loading branch information
h-moriya committed Jun 16, 2017
1 parent 17f5c9d commit fd7a29d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Cache/Engine/RedisEngine.php
Expand Up @@ -218,7 +218,12 @@ public function clear($check)
}
$keys = $this->_Redis->getKeys($this->_config['prefix'] . '*');

return !in_array(false, $this->deleteMany($keys));
$result = [];
foreach ($keys as $key) {
$result[] = $this->_Redis->delete($key) > 0;
}

return !in_array(false, $result);
}

/**
Expand Down

0 comments on commit fd7a29d

Please sign in to comment.