diff options
Diffstat (limited to 'plugins/CoreAdminHome/Tasks.php')
-rw-r--r-- | plugins/CoreAdminHome/Tasks.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index 9cccf23aba..eb76a8c6f0 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -112,8 +112,11 @@ class Tasks extends \Piwik\Plugin\Tasks return; } - $cronArchive = new CronArchive(); - $cronArchive->invalidateArchivedReportsForSitesThatNeedToBeArchivedAgain(); + $idSites = Request::processRequest('SitesManager.getAllSitesId'); + foreach ($idSites as $idSite) { + $cronArchive = new CronArchive(); + $cronArchive->invalidateArchivedReportsForSitesThatNeedToBeArchivedAgain($idSite); + } } private function scheduleTrackingCodeReminderChecks() |