Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/ArchiveProcessor/Period.php')
-rw-r--r--core/ArchiveProcessor/Period.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/ArchiveProcessor/Period.php b/core/ArchiveProcessor/Period.php
index ae00e00632..8d7add191f 100644
--- a/core/ArchiveProcessor/Period.php
+++ b/core/ArchiveProcessor/Period.php
@@ -130,8 +130,6 @@ class Piwik_ArchiveProcessor_Period extends Piwik_ArchiveProcessor
protected function compute()
{
Piwik_PostEvent('ArchiveProcessing_Period.compute', $this);
-
- Piwik_ArchiveProcessor_Rules::doPurgeOutdatedArchives($this->getTableArchiveNumericName());
}
protected function aggregateCoreVisitsMetrics()
@@ -181,15 +179,14 @@ class Piwik_ArchiveProcessor_Period extends Piwik_ArchiveProcessor
if (array_key_exists('nb_uniq_visitors', $results)) {
if (Piwik::isUniqueVisitorsEnabled($this->getPeriod()->getLabel())) {
- $value = (float)$this->computeNbUniqVisitors();
- $this->insertRecord('nb_uniq_visitors', $value);
+ $results['nb_uniq_visitors'] = (float)$this->computeNbUniqVisitors();
} else {
unset($results['nb_uniq_visitors']);
}
}
foreach ($results as $name => $value) {
- $this->insertRecord($name, $value);
+ $this->archiveWriter->insertRecord($name, $value);
}
// if asked for only one field to sum