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/CoreAdminHome
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/CoreAdminHome')
-rw-r--r--plugins/CoreAdminHome/SystemSettings.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/CoreAdminHome/SystemSettings.php b/plugins/CoreAdminHome/SystemSettings.php
index d998033337..ecf192645a 100644
--- a/plugins/CoreAdminHome/SystemSettings.php
+++ b/plugins/CoreAdminHome/SystemSettings.php
@@ -12,6 +12,7 @@ use Piwik\Piwik;
use Piwik\Plugins\CoreAdminHome\Controller as CoreAdminController;
use Piwik\Settings\Setting;
use Piwik\Settings\FieldConfig;
+use Piwik\Tracker\Cache;
class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
{
@@ -62,4 +63,9 @@ class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
});
}
+ public function save()
+ {
+ parent::save();
+ Cache::deleteTrackerCache();
+ }
}