diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2012-12-11 05:08:40 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2012-12-11 05:08:40 +0400 |
commit | 8b0ffe0156eaf1d17150fefa90b8b6816c21f230 (patch) | |
tree | ac9b9b0f85ea612304dd80f3815c1bdb108c884d /misc | |
parent | 66f8fc3e0a2c97a22491bfaae3a16950f01425ed (diff) |
Various pending changes
git-svn-id: http://dev.piwik.org/svn/trunk@7594 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/archive.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 37d68b81d4..bbc570dc01 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -90,7 +90,9 @@ class Archiving * It will be overwritten by the number of days since last archiving ran until completion. */ const DEFAULT_DATE_LAST = 52; - + // Since weeks are not used in yearly archives, we make sure that all possible weeks are processed + const DEFAULT_DATE_LAST_WEEKS = 520; + protected $timeLastCompleted = false; protected $requestPrepend = '&trigger=archivephp'; protected $errors = array(); @@ -155,6 +157,10 @@ class Archiving if(empty($lastTimestampWebsiteProcessed)) { $dateLast = self::DEFAULT_DATE_LAST; + if($period == 'week') + { + $dateLast = self::DEFAULT_DATE_LAST_WEEKS; + } } else { |