From 746b599f03d93ad82a1a270f610f1cf15787a949 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Thu, 5 Mar 2015 19:47:08 -0800 Subject: Refs #7811, do not purge custom ranges in same method as outdated archive purging. Move to a second method in Archive\Purger. --- plugins/CoreAdminHome/Tasks.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/CoreAdminHome/Tasks.php') 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); } } } -- cgit v1.2.3