diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-11 13:10:40 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-11 13:10:40 +0400 |
commit | e0e83ef063827840e876642088e01e0e583f2adf (patch) | |
tree | b8d45e16f2cb8345eea718c15494762deaddb007 /plugins/DBStats | |
parent | 8cc4127127f2a8f9e95642470cac2e870e1f0d1a (diff) |
Simplifying API for creating scheduled tasks, ScheduledTime objects now created via factory eg. ScheduledTime::factory('daily');
Diffstat (limited to 'plugins/DBStats')
-rw-r--r-- | plugins/DBStats/DBStats.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index f32d07bce6..d82fd8e728 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -20,6 +20,7 @@ use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable; use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie; use Piwik\ScheduledTask; use Piwik\ScheduledTime\Weekly; +use Piwik\ScheduledTime; /** * @@ -60,7 +61,7 @@ class DBStats extends \Piwik\Plugin $this, 'cacheDataByArchiveNameReports', null, - new Weekly(), + ScheduledTime::factory('weekly'), ScheduledTask::LOWEST_PRIORITY ); $tasks[] = $cacheDataByArchiveNameReportsTask; |