diff options
-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); |