-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Improve performance for grids with permission checks #3640
Conversation
How about implementing it at the session level: magento-lts/app/code/core/Mage/Admin/Model/Session.php Lines 224 to 250 in 0ac3f19
The improvement would not be limited to grid. In this PR, line 229 |
@kiatng i did some tests with xdebug and cant see any acl resource is checked multiple times. Need some advice. |
Sample Data: Sales Order Grid with 46 orders Before PR:
After PR:
|
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
Okay ... working from smartphone was not ideal ... 😂 Fix it later. |
Description (*)
Some grids (eg orders) check whether user is allowed to click/view ... but its valididated for each row.
With this PR its only checked once.