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:
authordiosmosis <diosmosis@users.noreply.github.com>2019-03-20 23:51:30 +0300
committerGitHub <noreply@github.com>2019-03-20 23:51:30 +0300
commit274f1bef249c2e6921e6fb09b52dbd11ab372ce1 (patch)
treed2e4efc41632c0e2930b6cc1dd4f3473ea08be60 /plugins/CoreUpdater
parent4df78749cb2a105de554dc776454b9d640e9b7e5 (diff)
Delete cache after one click update to avoid un-updated in-memory classes being used. (#14236)
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r--plugins/CoreUpdater/Controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreUpdater/Controller.php b/plugins/CoreUpdater/Controller.php
index c2f50285f1..0f0f0fa410 100644
--- a/plugins/CoreUpdater/Controller.php
+++ b/plugins/CoreUpdater/Controller.php
@@ -167,8 +167,6 @@ class Controller extends \Piwik\Plugin\Controller
$messages = $e->getUpdateLogMessages();
}
- Filesystem::deleteAllCacheOnUpdate();
-
$view->feedbackMessages = $messages;
$this->addCustomLogoInfo($view);
return $view->render();
@@ -176,6 +174,8 @@ class Controller extends \Piwik\Plugin\Controller
public function oneClickResults()
{
+ Filesystem::deleteAllCacheOnUpdate();
+
$httpsFail = (bool) Common::getRequestVar('httpsFail', 0, 'int', $_POST);
$error = Common::getRequestVar('error', '', 'string', $_POST);