Skip to content

Commit

Permalink
🐛 flush earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei committed Jan 13, 2025
1 parent 7500a21 commit 0ac9544
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby-nitro",
"type": "kirby-plugin",
"version": "2.1.0",
"version": "2.1.1",
"description": "Nitro speeds up the loading of content in your Kirby project.",
"license": "MIT",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ function nitro(): \Bnomei\Nitro
'system.loadPlugins:after' => function () {
\Bnomei\Nitro::singleton()->ready();
},
'page.*:after' => function ($event, $page) {
'page.*:before' => function ($event, $page) {
if ($event->action() !== 'render') {
\Bnomei\Nitro::singleton()->dir()->flush();
}
},
'file.*:after' => function ($event, $file) {
'file.*:before' => function ($event, $file) {
if ($event->action() !== 'render') {
\Bnomei\Nitro::singleton()->dir()->flush();
}
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'bnomei/kirby-nitro',
'pretty_version' => '2.1.0',
'version' => '2.1.0.0',
'pretty_version' => '2.1.1',
'version' => '2.1.1.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/kirby-nitro' => array(
'pretty_version' => '2.1.0',
'version' => '2.1.0.0',
'pretty_version' => '2.1.1',
'version' => '2.1.1.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand Down

0 comments on commit 0ac9544

Please sign in to comment.