Improve configuration of rearchive_reports_in_past_last_n_months setting #17366
Labels
Help wanted
Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
rearchive_reports_in_past_last_n_months
already haslast_n
in the name but still expects to configurelast4
as value for example. Goal of this issue is thatsubstr
https://github.com/matomo-org/matomo/blob/4.2.1/core/Archive/ArchiveInvalidator.php#L7994
(which comes fromstrlen('last')
) but would instead do something likestr_replace('last', '', $lastNMonthsToInvalidate)
which be more readable.Note same code seems to be also in 2 places in Custom Reports where it would needs to be fixed too
The text was updated successfully, but these errors were encountered: