diff --git a/src/Console/Commands/StaticWarm.php b/src/Console/Commands/StaticWarm.php index 70ad301244..b451673baa 100644 --- a/src/Console/Commands/StaticWarm.php +++ b/src/Console/Commands/StaticWarm.php @@ -36,7 +36,7 @@ class StaticWarm extends Command {--u|user= : HTTP authentication user} {--p|password= : HTTP authentication password} {--insecure : Skip SSL verification} - {--eco : Only warm uncached URLs} + {--uncached : Only warm uncached URLs} '; protected $description = 'Warms the static cache by visiting all URLs'; @@ -179,7 +179,7 @@ private function uris(): Collection ->merge($this->additionalUris()) ->unique() ->reject(function ($uri) use ($cacher) { - if ($this->option('eco') && + if ($this->option('uncached') && $cacher->hasCachedPage(\Illuminate\Http\Request::create($uri)) ) { return true; diff --git a/tests/Console/Commands/StaticWarmTest.php b/tests/Console/Commands/StaticWarmTest.php index bc73f4975c..daa5eb03d3 100644 --- a/tests/Console/Commands/StaticWarmTest.php +++ b/tests/Console/Commands/StaticWarmTest.php @@ -53,7 +53,7 @@ public function it_only_visits_uncached_urls_when_the_eco_option_is_used() config(['statamic.static_caching.strategy' => 'half']); - $this->artisan('statamic:static:warm', ['--eco' => true]) + $this->artisan('statamic:static:warm', ['--uncached' => true]) ->expectsOutput('Visiting 1 URLs...') ->assertExitCode(0); }