From 27fb0ffb0668fbe92a097ce6eb330f9ec5b38ac5 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 11 Oct 2017 15:50:47 +0200 Subject: [PATCH] * update templates cache when installing/uninstalling plugin --- system/pages/admin/plugins.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/pages/admin/plugins.php b/system/pages/admin/plugins.php index 341dd0c7..03aec5d2 100644 --- a/system/pages/admin/plugins.php +++ b/system/pages/admin/plugins.php @@ -60,6 +60,9 @@ if(isset($_REQUEST['uninstall'])){ } if($success) { + if($cache->enabled()) { + $cache->delete('templates'); + } success('Successfully uninstalled plugin ' . $uninstall); } else { @@ -185,6 +188,10 @@ else if(isset($_FILES["plugin"]["name"])) warning('Unknown event type: ' . $info['type']); } } + + if($cache->enabled()) { + $cache->delete('templates'); + } success('' . $plugin['name'] . ' plugin has been successfully installed.'); } }