Skip to content

Commit

Permalink
Delete archives older than yesterday midnight raher than today midnig…
Browse files Browse the repository at this point in the history
…ht as we may delete too often otherwise
  • Loading branch information
Matthieu Aubry committed Oct 20, 2014
1 parent 2747e00 commit 31e6fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/ArchiveProcessor/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static function shouldPurgeOutdatedArchives(Date $date)
$purgeArchivesOlderThan = Date::factory(time() - 2 * $temporaryArchivingTimeout)->getDateTime();
} else {
// If cron core:archive command is building the reports, we should keep all temporary reports from today
$purgeArchivesOlderThan = Date::factory('today')->getDateTime();
$purgeArchivesOlderThan = Date::factory('yesterday')->getDateTime();
}
return $purgeArchivesOlderThan;
}
Expand Down Expand Up @@ -307,4 +307,4 @@ protected static function isSegmentPreProcessed(array $idSites, Segment $segment
}
return false;
}
}
}

0 comments on commit 31e6fb0

Please sign in to comment.