"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "matomo/core/Updates/4.1.2-b1.php" between
matomo-4.1.2-rc2.tar.gz and matomo-4.2.0.tar.gz

About: Matomo is a web analytics platform that aims to be an open source alternative to Google Analytics that let you retain ownership and control over your data (formerly Piwik).

4.1.2-b1.php  (matomo-4.1.2-rc2):4.1.2-b1.php  (matomo-4.2.0)
skipping to change at line 65 skipping to change at line 65
$segmentArchiving = StaticContainer::get(CronArchive\SegmentArchivin g::class); $segmentArchiving = StaticContainer::get(CronArchive\SegmentArchivin g::class);
$timeOfLastInvalidateTime = CronArchive::getLastInvalidationTime(); $timeOfLastInvalidateTime = CronArchive::getLastInvalidationTime();
$segments = API::getInstance()->getAll(); $segments = API::getInstance()->getAll();
foreach ($segments as $segment) { foreach ($segments as $segment) {
$tsCreated = !empty($segment['ts_created']) ? Date::factory($seg ment['ts_created'])->getTimestamp() : 0; $tsCreated = !empty($segment['ts_created']) ? Date::factory($seg ment['ts_created'])->getTimestamp() : 0;
$tsLastEdit = !empty($segment['ts_last_edit']) ? Date::factory($ segment['ts_last_edit'])->getTimestamp() : null; $tsLastEdit = !empty($segment['ts_last_edit']) ? Date::factory($ segment['ts_last_edit'])->getTimestamp() : null;
$timeToUse = max($tsCreated, $tsLastEdit); $timeToUse = max($tsCreated, $tsLastEdit);
if ($timeToUse > $timeOfLastInvalidateTime) { if ($timeToUse > $timeOfLastInvalidateTime) {
$segmentArchiving->reArchiveSegment($segment); try {
$segmentArchiving->reArchiveSegment($segment);
} catch (\Exception $ex) {
// ignore
}
} }
} }
}, ''); }, '');
return $migrations; return $migrations;
} }
private function getInvalidateCommand(Date $dateOfMatomo4Release) private function getInvalidateCommand(Date $dateOfMatomo4Release)
{ {
$command = "php " . PIWIK_INCLUDE_PATH . '/console core:invalidate-repor t-data --sites=all'; $command = "php " . PIWIK_INCLUDE_PATH . '/console core:invalidate-repor t-data --sites=all';
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)