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:
authordiosmosis <benaka@piwik.pro>2015-03-06 06:47:08 +0300
committerdiosmosis <benaka@piwik.pro>2015-03-06 06:47:08 +0300
commit746b599f03d93ad82a1a270f610f1cf15787a949 (patch)
tree2ec8f3705cef57302276edc8a50d0d967c3ea9d8 /plugins/CoreAdminHome/Tasks.php
parentca1a5c3c365f3b1e7c3529e0568a9cca60ec754c (diff)
Refs #7811, do not purge custom ranges in same method as outdated archive purging. Move to a second method in Archive\Purger.
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r--plugins/CoreAdminHome/Tasks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php
index 07398a83e3..ae28788d1d 100644
--- a/plugins/CoreAdminHome/Tasks.php
+++ b/plugins/CoreAdminHome/Tasks.php
@@ -58,7 +58,10 @@ class Tasks extends \Piwik\Plugin\Tasks
// Somehow we may have archive tables created with older dates, prevent exception from being thrown
if ($year > 1990) {
- $this->archivePurger->purgeOutdatedArchives(Date::factory("$year-$month-15"));
+ $dateObj = Date::factory("$year-$month-15");
+
+ $this->archivePurger->purgeOutdatedArchives($dateObj);
+ $this->archivePurger->purgeArchivesWithPeriodRange($dateObj);
}
}
}