Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 3f44744

Browse files
committed
🚑 dir cache did not flush for files
Signed-off-by: bnomei <[email protected]>
1 parent 895942d commit 3f44744

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-boost",
33
"type": "kirby-plugin",
4-
"version": "5.0.1",
4+
"version": "5.0.2",
55
"description": "Boost the speed of Kirby by having content files of files/pages/users cached, with fast lookup based on uuid.",
66
"license": "MIT",
77
"authors": [

index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,11 @@ function boost($id)
327327
BoostDirInventory::singleton()->flush();
328328
}
329329
},
330+
'file.*:after' => function ($event, $page) {
331+
if ($event->action() !== 'render' && option('bnomei.boost.helper')) {
332+
BoostDirInventory::singleton()->flush();
333+
}
334+
},
330335
'page.create:after' => function ($page) {
331336
if (option('bnomei.boost.helper')) {
332337
$page->boostIndexAdd();

vendor/composer/installed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php return array(
22
'root' => array(
33
'name' => 'bnomei/kirby3-boost',
4-
'pretty_version' => '5.0.1',
5-
'version' => '5.0.1.0',
4+
'pretty_version' => '5.0.2',
5+
'version' => '5.0.2.0',
66
'reference' => null,
77
'type' => 'kirby-plugin',
88
'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
1111
),
1212
'versions' => array(
1313
'bnomei/kirby3-boost' => array(
14-
'pretty_version' => '5.0.1',
15-
'version' => '5.0.1.0',
14+
'pretty_version' => '5.0.2',
15+
'version' => '5.0.2.0',
1616
'reference' => null,
1717
'type' => 'kirby-plugin',
1818
'install_path' => __DIR__ . '/../../',

0 commit comments

Comments
 (0)