diff --git a/modules/Plugins/Controllers/PluginController.php b/modules/Plugins/Controllers/PluginController.php index 81fe086b..78a0b252 100644 --- a/modules/Plugins/Controllers/PluginController.php +++ b/modules/Plugins/Controllers/PluginController.php @@ -249,6 +249,9 @@ class PluginController extends BaseController $this->plugins->activate($plugin); + // clear cache after activation + $plugin->clearCache(); + return redirect()->back(); } @@ -263,6 +266,9 @@ class PluginController extends BaseController $this->plugins->deactivate($plugin); + // clear cache after deactivation + $plugin->clearCache(); + return redirect()->back(); }