diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-05-07 18:47:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 18:47:47 +0300 |
commit | 4c3e07bb87d45bb9b1cb66be35e4760ed81b170f (patch) | |
tree | 088d43fb85795627c16a09121df0d8b15acfdf89 /plugins/CoreUpdater | |
parent | c8a8e5d9aea7d1bcb4904788b88ae4153ecb391a (diff) |
Clear all cache directly after an update instead of in oneClickResults(). (#17529)
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r-- | plugins/CoreUpdater/Controller.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/CoreUpdater/Controller.php b/plugins/CoreUpdater/Controller.php index 2ae4374e6a..e647fcdb42 100644 --- a/plugins/CoreUpdater/Controller.php +++ b/plugins/CoreUpdater/Controller.php @@ -182,7 +182,11 @@ class Controller extends \Piwik\Plugin\Controller $view->feedbackMessages = $messages; $this->addCustomLogoInfo($view); - return $view->render(); + $result = $view->render(); + + Filesystem::deleteAllCacheOnUpdate(); + + return $result; } public function oneClickUpdatePartTwo() @@ -230,8 +234,6 @@ class Controller extends \Piwik\Plugin\Controller throw new Exception('Auto updater is disabled'); } - Filesystem::deleteAllCacheOnUpdate(); - $httpsFail = (bool) Common::getRequestVar('httpsFail', 0, 'int', $_POST); $error = Common::getRequestVar('error', '', 'string', $_POST); |