From 3f4474422154a145248af209d9b6e8ece59d7c1a Mon Sep 17 00:00:00 2001 From: bnomei Date: Sat, 3 Aug 2024 09:24:35 +0200 Subject: [PATCH] :ambulance: dir cache did not flush for files Signed-off-by: bnomei --- composer.json | 2 +- index.php | 5 +++++ vendor/composer/installed.php | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index f05ad2e..263e655 100644 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/index.php b/index.php index b5cc64e..e9d9db0 100644 --- a/index.php +++ b/index.php @@ -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(); diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index e451f1e..89f3cf5 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,8 +1,8 @@ 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__ . '/../../', @@ -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__ . '/../../',