diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-03 03:49:33 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-07-03 03:49:33 +0400 |
commit | 76f63ca6cc10ee60d4206dd0079080638814f8cc (patch) | |
tree | 30b486b30552aec819500b02c9b46da7432085e6 /plugins/CorePluginsAdmin/PluginInstaller.php | |
parent | 8a3a0d717f63ac3dafe4fa18e868570e18bcb72b (diff) |
make sure to delete plugin cache when installing or updating a plugin
Diffstat (limited to 'plugins/CorePluginsAdmin/PluginInstaller.php')
-rw-r--r-- | plugins/CorePluginsAdmin/PluginInstaller.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CorePluginsAdmin/PluginInstaller.php b/plugins/CorePluginsAdmin/PluginInstaller.php index 83ee44a862..58fd074909 100644 --- a/plugins/CorePluginsAdmin/PluginInstaller.php +++ b/plugins/CorePluginsAdmin/PluginInstaller.php @@ -48,6 +48,8 @@ class PluginInstaller $this->makeSureThereAreNoMissingRequirements($metadata); $this->copyPluginToDestination($tmpPluginFolder); + Filesystem::deleteAllCacheOnUpdate($this->pluginName); + } catch (\Exception $e) { $this->removeFileIfExists($tmpPluginZip); @@ -78,6 +80,8 @@ class PluginInstaller $this->fixPluginFolderIfNeeded($tmpPluginFolder); $this->copyPluginToDestination($tmpPluginFolder); + Filesystem::deleteAllCacheOnUpdate($this->pluginName); + } catch (\Exception $e) { $this->removeFileIfExists($pathToZip); |