"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "matomo/core/CronArchive/SegmentArchiving.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).

SegmentArchiving.php  (matomo-4.1.2-rc2):SegmentArchiving.php  (matomo-4.2.0)
skipping to change at line 231 skipping to change at line 231
return !Rules::isBrowserTriggerEnabled() && !Rules::isBrowserArchivingAv ailableForSegments(); return !Rules::isBrowserTriggerEnabled() && !Rules::isBrowserArchivingAv ailableForSegments();
} }
public function reArchiveSegment($segmentInfo) public function reArchiveSegment($segmentInfo)
{ {
if (empty($segmentInfo['definition'])) { // sanity check if (empty($segmentInfo['definition'])) { // sanity check
return; return;
} }
$definition = urlencode($segmentInfo['definition']); $definition = urlencode($segmentInfo['definition']);
$idSite = $segmentInfo['enable_only_idsite'] ?? 'all'; $idSite = !empty($segmentInfo['enable_only_idsite']) ? $segmentInfo['ena ble_only_idsite'] : 'all';
$idSites = Access::doAsSuperUser(function () use ($idSite) { $idSites = Access::doAsSuperUser(function () use ($idSite) {
return Site::getIdSitesFromIdSitesString($idSite); return Site::getIdSitesFromIdSitesString($idSite);
}); });
$startDate = $this->getReArchiveSegmentStartDate($segmentInfo); $startDate = $this->getReArchiveSegmentStartDate($segmentInfo);
$invalidator = StaticContainer::get(ArchiveInvalidator::class); $invalidator = StaticContainer::get(ArchiveInvalidator::class);
$invalidator->scheduleReArchiving($idSites, null, null, $startDate, new Segment($definition, $idSites)); $invalidator->scheduleReArchiving($idSites, null, null, $startDate, new Segment($definition, $idSites));
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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