Project

General

Profile

Actions

Feature proposal #5236

closed

User and CmsUser missing caching

Added by krileon over 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
17 April 2015
Due date:
% Done:

100%

Estimated time:

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.

Actions

Also available in: Atom PDF