-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RBAC: cache items #3168
Comments
Another use case for calling |
Some ideas here:
|
Looks good to me. Assignment may be stored in web\User as a private property to ensure it only gets loaded once per request. |
Another solution is to build a NoSQL-backed RBAC manager. |
This extension caches |
My proposal for cached rbac dbmanager $this->_children = [
'parent_name1' => ['child1', 'child2', 'child3', ...],
'parent_name2' => ['child1', 'child2', 'child3', ...],
];
$this->_assigments = [
'userId1' => ['role1', 'role2', 'role3', ...],
]; |
Usiing rbac, i notice same problem that cebe wrote.... A large number of db query that solwly the app. |
@cebe wrote:
What about this case? Why not to cache assignments in memory to avoid duplicated queries in one request? I understand, why we can't use cache engine for this by default, but saving results of |
Caching auth items and etc.
Discussion - #3166
The text was updated successfully, but these errors were encountered: