Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-07-03 03:49:33 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-07-03 03:49:33 +0400
commit76f63ca6cc10ee60d4206dd0079080638814f8cc (patch)
tree30b486b30552aec819500b02c9b46da7432085e6 /plugins/CorePluginsAdmin/PluginInstaller.php
parent8a3a0d717f63ac3dafe4fa18e868570e18bcb72b (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.php4
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);