Skip to content

Commit

Permalink
🚑 dir cache did not flush for files
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei committed Aug 3, 2024
1 parent 75354cb commit b249036
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 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": "1.1.0",
"version": "1.1.1",
"description": "Nitro speeds up the loading of content in your Kirby project.",
"license": "MIT",
"authors": [
Expand Down
5 changes: 5 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
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' => '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__ . '/../../',
Expand All @@ -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__ . '/../../',
Expand Down

0 comments on commit b249036

Please sign in to comment.