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:
-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);