Improvements to occurrence calculation #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Takes into account the start date of range ($_startDate) if not null to calculate occurrences only during the desired start and end date (without calculating from the 1st occurrence).
Description
When an agenda was created in 2017, for example, with occurrences every day, we arrive in 2024 and the time of display of the widget on the dashboard can take a lot of time and slow down the fluidity of the dashboard especially if one has several agenda widgets. Same problem with the duration of the display in the visualization for each agenda object (where you can choose planning/day/week/month/year.
OK, a first solution is to change the date of the 1st occurrence but sincerely in 1 year I would have forgotten the reason why my dashboard takes time to display and I will not often see if my calendar plugin is doing well...
Suggested changelog entry
EN: Calculation of occurrences only during the desired dates (instead of calculating from the 1st occurrence)
FR: Calcul des occurrences seulement pendant les dates souhaitées (au lieu de calculer depuis la 1ère occurrence)
Related issues/external references
Affichage widget lent sur le dashboard
Fixes #
Types of changes
PR checklist