diff --git a/app/Console/Command/AdminShell.php b/app/Console/Command/AdminShell.php index 544e3a54f..3555fcfd2 100644 --- a/app/Console/Command/AdminShell.php +++ b/app/Console/Command/AdminShell.php @@ -616,9 +616,9 @@ class AdminShell extends AppShell try { $redis = RedisTool::init(); for ($i = 0; $i < 10; $i++) { - $persistence = $redis->info('persistence'); - if (isset($persistence['loading']) && $persistence['loading']) { - $this->out('Redis is still loading...'); + $pong = $redis->ping(); + if ($pong !== true) { + $this->out('Redis is still loading... ' . $pong); sleep(1); } else { break;