X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FCache.php;h=510c05b04acec6cbb068cfdafb3f9714f70e9f7b;hb=c713c2bf622257dbecf223b5f58bf8a98dde9d65;hp=af0d771307ffd31bdf6496a72becf39e976feeb9;hpb=31148e25cf6d800851064813689f8fba6340fb5c;p=friendica.git diff --git a/src/Core/Console/Cache.php b/src/Core/Console/Cache.php index af0d771307..510c05b04a 100644 --- a/src/Core/Console/Cache.php +++ b/src/Core/Console/Cache.php @@ -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');