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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-06-05 18:27:22 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-06-05 18:27:22 +0300
commit447ff12b141f1bba9cab78396cb12ff2b98b595c (patch)
treec07b92730d7ced179a65fd43c46916926b7e4ca8 /core/Plugin/Manager.php
parent8e4f78eaac98a4650212aa50bb112e55944113b7 (diff)
parent43e8bae0e51471d204c00b6f5c63e53d49f8cf70 (diff)
Merge pull request #8016 from piwik/fix/deactivating-plugins
Deactivating a plugin: clear the caches before unloading the plugin
Diffstat (limited to 'core/Plugin/Manager.php')
-rw-r--r--core/Plugin/Manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php
index 8790175128..ce491935ef 100644
--- a/core/Plugin/Manager.php
+++ b/core/Plugin/Manager.php
@@ -337,6 +337,8 @@ class Manager
*/
public function deactivatePlugin($pluginName)
{
+ $this->clearCache($pluginName);
+
// execute deactivate() to let the plugin do cleanups
$this->executePluginDeactivate($pluginName);
@@ -344,8 +346,6 @@ class Manager
$this->removePluginFromConfig($pluginName);
- $this->clearCache($pluginName);
-
/**
* Event triggered after a plugin has been deactivated.
*