]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/Cache.php
Bugfixings for getAllKeys()
[friendica.git] / src / Core / Console / Cache.php
index 2d3508894a4007b91a1de13c44d8a5cb434d18b9..1d93c3c011d12f150ca0103d7bf55b4cab3b92dc 100644 (file)
@@ -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');