diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-05 08:44:37 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-05 08:44:37 +0400 |
commit | 3e03b0a7ca4055b4f05be7d4ec7bcfaacf364eff (patch) | |
tree | 47afa18c0b671f38e17405078bdee156ad020058 /plugins/PrivacyManager/PrivacyManager.php | |
parent | 0ed11b178860844b97b967f6cfa1ffd12ab2eaab (diff) |
refs #5301 started to simplify scheduled tasks API while staying backwards compatible
Diffstat (limited to 'plugins/PrivacyManager/PrivacyManager.php')
-rw-r--r-- | plugins/PrivacyManager/PrivacyManager.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/PrivacyManager/PrivacyManager.php b/plugins/PrivacyManager/PrivacyManager.php index 8f0995fb50..edf0eba970 100644 --- a/plugins/PrivacyManager/PrivacyManager.php +++ b/plugins/PrivacyManager/PrivacyManager.php @@ -18,8 +18,6 @@ use Piwik\Option; use Piwik\Period; use Piwik\Period\Range; use Piwik\Plugins\Goals\Archiver; -use Piwik\ScheduledTask; -use Piwik\ScheduledTime; use Piwik\Site; use Piwik\Tracker\GoalManager; @@ -137,7 +135,6 @@ class PrivacyManager extends \Piwik\Plugin { return array( 'AssetManager.getJavaScriptFiles' => 'getJsFiles', - 'TaskScheduler.getScheduledTasks' => 'getScheduledTasks', 'Tracker.setTrackerCacheGeneral' => 'setTrackerCacheGeneral', 'Tracker.isExcludedVisit' => array($this->dntChecker, 'checkHeaderInTracker'), 'Tracker.setVisitorIp' => array($this->ipAnonymizer, 'setVisitorIpAddress'), @@ -150,22 +147,6 @@ class PrivacyManager extends \Piwik\Plugin $cacheContent = $config->setTrackerCacheGeneral($cacheContent); } - public function getScheduledTasks(&$tasks) - { - // both tasks are low priority so they will execute after most others, but not lowest, so - // they will execute before the optimize tables task - - $purgeReportDataTask = new ScheduledTask( - $this, 'deleteReportData', null, ScheduledTime::factory('daily'), ScheduledTask::LOW_PRIORITY - ); - $tasks[] = $purgeReportDataTask; - - $purgeLogDataTask = new ScheduledTask( - $this, 'deleteLogData', null, ScheduledTime::factory('daily'), ScheduledTask::LOW_PRIORITY - ); - $tasks[] = $purgeLogDataTask; - } - public function getJsFiles(&$jsFiles) { $jsFiles[] = "plugins/PrivacyManager/javascripts/privacySettings.js"; |