mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
Merge pull request #5848 from nupplaphil/friendica-5847
friendica-5847 Console Cache List command doesn't work
This commit is contained in:
commit
3bccaccede
15 changed files with 139 additions and 58 deletions
|
@ -105,7 +105,7 @@ HELP;
|
|||
private function executeList()
|
||||
{
|
||||
$prefix = $this->getArgument(1);
|
||||
$keys = Core\Cache::getAllKeys();
|
||||
$keys = Core\Cache::getAllKeys($prefix);
|
||||
|
||||
if (empty($prefix)) {
|
||||
$this->out('Listing all cache keys:');
|
||||
|
@ -115,10 +115,8 @@ HELP;
|
|||
|
||||
$count = 0;
|
||||
foreach ($keys as $key) {
|
||||
if (empty($prefix) || strpos($key, $prefix) === 0) {
|
||||
$this->out($key);
|
||||
$count++;
|
||||
}
|
||||
$this->out($key);
|
||||
$count++;
|
||||
}
|
||||
|
||||
$this->out($count . ' keys found');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue