diff options
Diffstat (limited to 'plugins/CustomPiwikJs/Tasks.php')
-rw-r--r-- | plugins/CustomPiwikJs/Tasks.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/CustomPiwikJs/Tasks.php b/plugins/CustomPiwikJs/Tasks.php new file mode 100644 index 0000000000..1bb1bae384 --- /dev/null +++ b/plugins/CustomPiwikJs/Tasks.php @@ -0,0 +1,23 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +namespace Piwik\Plugins\CustomPiwikJs; + +class Tasks extends \Piwik\Plugin\Tasks +{ + public function schedule() + { + $this->hourly('updateTracker'); + } + + public function updateTracker() + { + $updater = new TrackerUpdater(); + $updater->update(); + } +} |