diff --git a/composer.json b/composer.json index 1c565ea..b7ed68b 100644 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/index.php b/index.php index 6573b29..fc571fc 100644 --- a/index.php +++ b/index.php @@ -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(); } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index fbc2a94..78ee8d3 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,8 +1,8 @@ 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__ . '/../../', @@ -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__ . '/../../',