X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FCache.php;h=510c05b04acec6cbb068cfdafb3f9714f70e9f7b;hb=c713c2bf622257dbecf223b5f58bf8a98dde9d65;hp=0dfef43f35b4bbe64fe167de9f91fb1b1200538a;hpb=3f0f3b6ae60ac514b8ac890db996e40e65795b0b;p=friendica.git diff --git a/src/Core/Console/Cache.php b/src/Core/Console/Cache.php index 0dfef43f35..510c05b04a 100644 --- a/src/Core/Console/Cache.php +++ b/src/Core/Console/Cache.php @@ -65,7 +65,7 @@ HELP; $this->out('Options: ' . var_export($this->options, true)); } - if (!App\Mode::has(App\Mode::DBCONFIGAVAILABLE)) { + if ($a->getMode()->has(App\Mode::DBCONFIGAVAILABLE)) { $this->out('Database isn\'t ready or populated yet, database cache won\'t be available'); } @@ -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');