Invalidate segment data on update only if the definition changes #17444
Labels
Help wanted
Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Major
Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone
In https://github.com/matomo-org/matomo/blob/4.3.0-b2/plugins/SegmentEditor/API.php#L278 we trigger to rearchive the segment whenever it is updated. However, we should only do this if the definition changes (because the meaning of the report changes) or if the autoArchive changes from false/0 to true/1 (because then we'd want to make sure to have all the needed reports for in the past depending on configured setting).
This will be useful as this way we don't invalidate and rearchive reports unnecessarily.
The text was updated successfully, but these errors were encountered: