diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-06-27 14:44:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 14:44:24 +0300 |
commit | c167963872278ab53d47839567a963dd65bef09e (patch) | |
tree | 0afe6b262d285c45f053e333782ed640d2fafa28 /plugins/CoreAdminHome/SystemSettings.php | |
parent | 7a93a2b5ff683e7bb27339502a60c00add9fe26e (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/SystemSettings.php')
-rw-r--r-- | plugins/CoreAdminHome/SystemSettings.php | 6 |
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(); + } } |