* update templates cache when installing/uninstalling plugin

This commit is contained in:
slawkens 2017-10-11 15:50:47 +02:00
parent 6c3439acf9
commit 27fb0ffb06

View File

@ -60,6 +60,9 @@ if(isset($_REQUEST['uninstall'])){
} }
if($success) { if($success) {
if($cache->enabled()) {
$cache->delete('templates');
}
success('Successfully uninstalled plugin ' . $uninstall); success('Successfully uninstalled plugin ' . $uninstall);
} }
else { else {
@ -185,6 +188,10 @@ else if(isset($_FILES["plugin"]["name"]))
warning('Unknown event type: ' . $info['type']); warning('Unknown event type: ' . $info['type']);
} }
} }
if($cache->enabled()) {
$cache->delete('templates');
}
success('<strong>' . $plugin['name'] . '</strong> plugin has been successfully installed.'); success('<strong>' . $plugin['name'] . '</strong> plugin has been successfully installed.');
} }
} }