Skip to content

Commit

Permalink
Flush Blink when Page has been generated (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
o1y authored Sep 25, 2024
1 parent b21860c commit 703db85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use League\Flysystem\Filesystem as Flysystem;
use League\Flysystem\Local\LocalFilesystemAdapter;
use Statamic\Contracts\Imaging\UrlBuilder;
use Statamic\Facades\Blink;
use Statamic\Facades\Collection;
use Statamic\Facades\Entry;
use Statamic\Facades\Glide;
Expand Down Expand Up @@ -301,6 +302,8 @@ protected function makeContentGenerationClosures($pages, $request)

$warnings[] = $generated->consoleMessage();
}

Blink::flush();
}

return compact('count', 'warnings', 'errors');
Expand Down

0 comments on commit 703db85

Please sign in to comment.