diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-03-20 23:51:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 23:51:30 +0300 |
commit | 274f1bef249c2e6921e6fb09b52dbd11ab372ce1 (patch) | |
tree | d2e4efc41632c0e2930b6cc1dd4f3473ea08be60 /plugins/CoreUpdater/Controller.php | |
parent | 4df78749cb2a105de554dc776454b9d640e9b7e5 (diff) |
Delete cache after one click update to avoid un-updated in-memory classes being used. (#14236)
Diffstat (limited to 'plugins/CoreUpdater/Controller.php')
-rw-r--r-- | plugins/CoreUpdater/Controller.php | 4 |
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); |