diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-06 06:47:08 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-06 06:47:08 +0300 |
commit | 746b599f03d93ad82a1a270f610f1cf15787a949 (patch) | |
tree | 2ec8f3705cef57302276edc8a50d0d967c3ea9d8 /plugins/CoreAdminHome/Tasks.php | |
parent | ca1a5c3c365f3b1e7c3529e0568a9cca60ec754c (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.php | 5 |
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); } } } |