Feature proposal #5236
closed
User and CmsUser missing caching
Added by krileon over 9 years ago.
Updated about 8 years ago.
Description
The various utility functions of User and CmsUser like isAuthorizedToPerformActionOnAsset and isGlobalModerator desperately need caching. These could easily be called 100 times in 1 page load with 80% of them being duplicates. Without caching you end up with a massive amount of duplicate queries being made for simple permissions or moderator checks that should cache their results in at the very least a static variable.
- Assignee changed from krileon to beat
- Tracker changed from Bug to Feature proposal
- Target version changed from CB 2.0.8 to CB 2.0.9
- Target version changed from CB 2.0.9 to CB 2.0.10
- Target version changed from CB 2.0.10 to CB 2.0.11
- Target version changed from CB 2.0.11 to CB 2.0.12
- Target version changed from CB 2.0.12 to CB 2.0.13
- Target version changed from CB 2.0.13 to CB 2.0.14
- Target version changed from CB 2.0.14 to CB 2.0.15
- Target version changed from CB 2.0.15 to CB 2.1
- Status changed from Assigned to Closed
- Assignee changed from beat to krileon
- Target version changed from CB 2.1 to CB 2.0.15
- % Done changed from 0 to 100
This was implemented in MR !1056 for 2.0.15.
Also available in: Atom
PDF