diff --git a/CHANGELOG.md b/CHANGELOG.md index 03031c5..c088645 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 install + ## [2.14.4] - 2026-06-24 ### Fixed 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; }