Skip to content
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

no use of cache in getPermissionID() #493

Open
paul45 opened this issue Feb 22, 2022 · 0 comments
Open

no use of cache in getPermissionID() #493

paul45 opened this issue Feb 22, 2022 · 0 comments

Comments

@paul45
Copy link
Contributor

paul45 commented Feb 22, 2022

hello
i use has_permission('my.permission')in each row of a table

and the query SELECT * FROM auth_permissionsWHEREname = 'my.permission' LIMIT 1 is call one time for each row

i think it is because getPermissionID() don't use cache
is it a normal feature ?

it makes my app very slow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant