Fix clear cache when a dir does not exist, fixes #3810
parent
664202e767
commit
b098a2fdde
|
@ -53,13 +53,13 @@ EOT
|
||||||
if (!$cachePath) {
|
if (!$cachePath) {
|
||||||
$io->writeError("<info>Cache directory does not exist ($key): $cachePath</info>");
|
$io->writeError("<info>Cache directory does not exist ($key): $cachePath</info>");
|
||||||
|
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
$cache = new Cache($io, $cachePath);
|
$cache = new Cache($io, $cachePath);
|
||||||
if (!$cache->isEnabled()) {
|
if (!$cache->isEnabled()) {
|
||||||
$io->writeError("<info>Cache is not enabled ($key): $cachePath</info>");
|
$io->writeError("<info>Cache is not enabled ($key): $cachePath</info>");
|
||||||
|
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$io->writeError("<info>Clearing cache ($key): $cachePath</info>");
|
$io->writeError("<info>Clearing cache ($key): $cachePath</info>");
|
||||||
|
|
Loading…
Reference in New Issue