File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments