mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
* update templates cache when installing/uninstalling plugin
This commit is contained in:
parent
6c3439acf9
commit
27fb0ffb06
@ -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('<strong>' . $plugin['name'] . '</strong> plugin has been successfully installed.');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user