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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-06-27 14:44:24 +0300
committerGitHub <noreply@github.com>2019-06-27 14:44:24 +0300
commitc167963872278ab53d47839567a963dd65bef09e (patch)
tree0afe6b262d285c45f053e333782ed640d2fafa28 /plugins/UsersManager
parent7a93a2b5ff683e7bb27339502a60c00add9fe26e (diff)
Provide methods to force the update of tracker caches (#14578)
* Provide methods to force the update of tracker caches * delete tracker cache more often * delete only needed cache * invalidate cache when hosts change
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r--plugins/UsersManager/API.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index 2696c9ffe2..5980e75cb1 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -730,6 +730,8 @@ class API extends \Piwik\Plugin\API
$this->model->deleteUserAccess($userLogin);
$this->model->setSuperUserAccess($userLogin, $hasSuperUserAccess);
+
+ Cache::deleteTrackerCache();
}
/**
@@ -850,6 +852,8 @@ class API extends \Piwik\Plugin\API
$userLogin,
$this->createTokenAuth($userLogin)
);
+
+ Cache::deleteTrackerCache();
}
/**