Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 2, 2024
1 parent 902a064 commit e5688ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/StaticWarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Commands/StaticWarmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e5688ba

Please sign in to comment.