diff --git a/composer.json b/composer.json index 02466d6..42f9691 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "bnomei/kirby-nitro", "type": "kirby-plugin", - "version": "1.1.0", + "version": "1.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 9952133..5096bd8 100644 --- a/index.php +++ b/index.php @@ -36,6 +36,11 @@ function nitro(): \Bnomei\Nitro \Bnomei\Nitro::singleton()->dir()->flush(); } }, + 'file.*:after' => function ($event, $page) { + if ($event->action() !== 'render') { + \Bnomei\Nitro::singleton()->dir()->flush(); + } + }, ], 'commands' => [ 'nitro:index' => [ diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 9db7b01..8664b08 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,8 +1,8 @@ array( 'name' => 'bnomei/kirby-nitro', - 'pretty_version' => '1.1.0', - 'version' => '1.1.0.0', + 'pretty_version' => '1.1.1', + 'version' => '1.1.1.0', 'reference' => null, 'type' => 'kirby-plugin', 'install_path' => __DIR__ . '/../../', @@ -11,8 +11,8 @@ ), 'versions' => array( 'bnomei/kirby-nitro' => array( - 'pretty_version' => '1.1.0', - 'version' => '1.1.0.0', + 'pretty_version' => '1.1.1', + 'version' => '1.1.1.0', 'reference' => null, 'type' => 'kirby-plugin', 'install_path' => __DIR__ . '/../../',