From 8620c0724a2cf5b4832ede44f9132ec0b9a10460 Mon Sep 17 00:00:00 2001 From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:43:41 +0200 Subject: [PATCH 1/3] Fix(Install): clear Twig Cache --- hook.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hook.php b/hook.php index 43ad830..047766e 100644 --- a/hook.php +++ b/hook.php @@ -27,6 +27,8 @@ * @link https://github.com/pluginsGLPI/tag * ------------------------------------------------------------------------- */ + +use Glpi\Cache\CacheManager; use Glpi\Form\Form; use Glpi\Plugin\Hooks; @@ -274,6 +276,10 @@ function plugin_tag_install() } } + if (version_compare(GLPI_VERSION, '11.0.9', '<')) { + (new CacheManager())->resetAllCaches(); + } + return true; } From e9bfb8379564ff51a26238be866cbeabae961bb3 Mon Sep 17 00:00:00 2001 From: Stanislas Kita <7335054+stonebuzz@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:56:03 +0200 Subject: [PATCH 2/3] adapt CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03031c5..a0947c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [UNRELEASED] + +### Fixed + +- Clear twig cache on isntall + ## [2.14.4] - 2026-06-24 ### Fixed From 69389d7b91915908ec2278c186e0c632d38f836a Mon Sep 17 00:00:00 2001 From: Stanislas Date: Thu, 25 Jun 2026 10:07:56 +0200 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0947c1..c088645 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed -- Clear twig cache on isntall +- Clear twig cache on install ## [2.14.4] - 2026-06-24