diff options
Diffstat (limited to 'core/CronArchive.php')
-rw-r--r-- | core/CronArchive.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index d9ed8c6311..b1489b27dd 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -1279,9 +1279,19 @@ class CronArchive } $this->logger->info("- Reports for today will be processed at most every " . $this->todayArchiveTimeToLive . " seconds. You can change this value in Piwik UI > Settings > General Settings."); - $this->logger->info("- Reports for the current week/month/year will be refreshed at most every " + + $this->logger->info("- Reports for the current week/month/year will be requested at most every " . $this->processPeriodsMaximumEverySeconds . " seconds."); + foreach (array('week', 'month', 'year', 'range') as $period) { + $ttl = Rules::getPeriodArchiveTimeToLiveDefault($period); + + if (!empty($ttl) && $ttl !== $this->todayArchiveTimeToLive) { + $this->logger->info("- Reports for the current $period will be processed at most every " . $ttl + . " seconds. You can change this value in config/config.ini.php by editing 'time_before_" . $period . "_archive_considered_outdated' in the '[General]' section."); + } + } + // Try and not request older data we know is already archived if ($this->lastSuccessRunTimestamp !== false) { $dateLast = time() - $this->lastSuccessRunTimestamp; |