Skip to content

Commit 4f34fef

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 741f9ed + 705cc47 commit 4f34fef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Commands/ClearCache.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ protected function clearSelectedCaches(): void
5656
$targetTypes = array_filter(array_keys(static::CACHE_TYPES), fn ($option) => $this->option($option));
5757
if (empty($targetTypes)) {
5858
$this->error('No cache types selected. Use --all to clear all caches or specify cache types.');
59+
5960
return;
6061
}
61-
62+
6263
$this->info('Clearing selected caches...');
6364
foreach ($targetTypes as $type) {
6465
$this->clearCache($type);
@@ -74,18 +75,21 @@ protected function clearCache(string $type): void
7475
switch ($type) {
7576
case 'languages':
7677
inspirecms()->forgetCachedLanguages();
78+
7779
break;
7880
case 'routes':
7981
inspirecms()->forgetCachedContentRoutes();
82+
8083
// $this->callSilent('route:clear');
8184
break;
8285
case 'navigation':
8386
inspirecms()->forgetCachedNavigation();
87+
8488
break;
8589
}
8690
});
8791
}
88-
92+
8993
}
9094

9195
private function wrapClearCache(string $type, callable $callback): void

0 commit comments

Comments
 (0)