Skip to content

Commit

Permalink
warm the trees
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jul 8, 2024
1 parent 0097cf5 commit 99e703a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/Commands/StaticWarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ protected function entryUris(): Collection
{
$this->line('[ ] Entries...');

// "Warm" the structure trees
Facades\Collection::whereStructured()->each(fn ($collection) => $collection->structure()->trees()->each->tree());

$entries = Facades\Entry::all()->map(function (Entry $entry) {
if (! $entry->published() || $entry->private()) {
return null;
Expand Down

0 comments on commit 99e703a

Please sign in to comment.