From 76f63ca6cc10ee60d4206dd0079080638814f8cc Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Thu, 3 Jul 2014 01:49:33 +0200 Subject: make sure to delete plugin cache when installing or updating a plugin --- plugins/CorePluginsAdmin/PluginInstaller.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/CorePluginsAdmin/PluginInstaller.php') 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); -- cgit v1.2.3