Skip to content

Commit

Permalink
🚑 dir cache did not flush for files
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 3, 2024
1 parent 895942d commit 3f44744
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/kirby3-boost",
"type": "kirby-plugin",
"version": "5.0.1",
"version": "5.0.2",
"description": "Boost the speed of Kirby by having content files of files/pages/users cached, with fast lookup based on uuid.",
"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 @@ -327,6 +327,11 @@ function boost($id)
BoostDirInventory::singleton()->flush();
}
},
'file.*:after' => function ($event, $page) {
if ($event->action() !== 'render' && option('bnomei.boost.helper')) {
BoostDirInventory::singleton()->flush();
}
},
'page.create:after' => function ($page) {
if (option('bnomei.boost.helper')) {
$page->boostIndexAdd();
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/kirby3-boost',
'pretty_version' => '5.0.1',
'version' => '5.0.1.0',
'pretty_version' => '5.0.2',
'version' => '5.0.2.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/kirby3-boost' => array(
'pretty_version' => '5.0.1',
'version' => '5.0.1.0',
'pretty_version' => '5.0.2',
'version' => '5.0.2.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand Down

0 comments on commit 3f44744

Please sign in to comment.