You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
B2: isHoliday() runs two queries per day checked #13
With manual holidays enabled, every isHoliday() call runs two queries (blacklist, then whitelist). Core calls it once per calendar cell (about 730 queries on the year view) and once per day inside calcFinish() / calcDuration() loops.
Fix: load the non-working and extra-working dates for a year (or the requested span) once per request and answer from memory.
Files:holiday_functions.class.php L54–130
Evidence: found by reading the code against master; not reproduced on a running install. Effort: S
Activity