MantisBT: master f380b964

Author Committer Branch Timestamp Parent
dregad dregad master 2021-03-25 15:30 master 3426c5ea
Affected Issues  0028120: Improve performance of user_pref_clear_invalid_project_default()

Cache user data when clearing invalid project defaults

user_pref_clear_invalid_project_default() can potentially work with a
large number of records, if the project being processed has been set as
default by many users.

Caching all user rows early reduces the overhead, as we execute a single
DB query instead of one per user.

Fixes 0028120

mod - core/user_pref_api.php Diff File