diff --git a/src/Composer/Command/ClearCacheCommand.php b/src/Composer/Command/ClearCacheCommand.php
index 9512ba416..818b8ee30 100644
--- a/src/Composer/Command/ClearCacheCommand.php
+++ b/src/Composer/Command/ClearCacheCommand.php
@@ -53,13 +53,13 @@ EOT
if (!$cachePath) {
$io->writeError("Cache directory does not exist ($key): $cachePath");
- return;
+ continue;
}
$cache = new Cache($io, $cachePath);
if (!$cache->isEnabled()) {
$io->writeError("Cache is not enabled ($key): $cachePath");
- return;
+ continue;
}
$io->writeError("Clearing cache ($key): $cachePath");