Say you are viewing the goals overview page for a range period. What happens is
processDependentArchivewith a segment in https://github.com/matomo-org/matomo/blob/4.5.0-b1/plugins/Goals/Archiver.php#L505
visitorType==returningthen it would suddenly process all archives because
isSegmentPreProcessed($segment)===true. Or when requesting a segment that is being pre-processed.
Generally, for ranges when triggered from the browser (not archive), we always only want to archive the specific plugin.
Debugged and profiled this and now no longer aggregates multiple archives for all plugins. Only the requested ones. Hoping there are no side effects.
I would add a test but don't have the time plus the outcome stays the same anyway.