Skip to content

Commit

Permalink
Return exit code 1 from static:clear when static caching is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 10, 2025
1 parent 8a2ad86 commit 9e4adde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/StaticClear.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle()
if (! config('statamic.static_caching.strategy')) {
$this->components->error('Static caching is not enabled.');

return 0;
return 1;
}

spin(callback: fn () => StaticCache::flush(), message: 'Clearing the static page cache...');
Expand Down

0 comments on commit 9e4adde

Please sign in to comment.