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; }