Skip to content

Commit

Permalink
Don't try to warm zero urls
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Aug 16, 2024
1 parent bb44969 commit 1316e81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Services/Warmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public function execute(): void

public function warm(Collection $urls): void
{
if ($urls->count() === 0) {
return;
}

$count = Helpers::configInt('edge-flush.warmer.concurrent_requests', 10);

$count = !is_numeric($count) ? 10 : $count;
Expand Down

0 comments on commit 1316e81

Please sign in to comment.