From f991a8c817fcd1e671390416f34af9dac8248fab Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 25 Nov 2023 11:09:45 +0100 Subject: [PATCH] clearCache after install plugin --- system/libs/plugins.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/system/libs/plugins.php b/system/libs/plugins.php index 8cb10a3f..2446d418 100644 --- a/system/libs/plugins.php +++ b/system/libs/plugins.php @@ -505,12 +505,7 @@ class Plugins { self::$warnings[] = 'Cannot load install script. Your plugin might be not working correctly.'; } - $cache = Cache::getInstance(); - if($cache->enabled()) { - $cache->delete('templates'); - $cache->delete('hooks'); - $cache->delete('template_menus'); - } + clearCache(); return true; }