- Issue created by @mglaman
- πΊπΈUnited States mglaman WI, USA
Maybe a dupe of π Static cache permissions Needs work
I have no idea why, but PermissionHandler does not cache permissions.
All calls to \Drupal\user\PermissionHandler::getPermissions go straight to \Drupal\user\PermissionHandler::buildPermissionsYaml which does disk scan and YAML decoding. It can be pretty expensive.
I have no idea why this isn't cached and couldn't find anything in the issue queue.
\Drupal\user\PermissionHandler::getPermissions should cache the built and sorted permissions. Invalidated whenever a module is installed.
Provide a 'permissions' cache tag.
Active
11.0 π₯
Last updated
Maybe a dupe of π Static cache permissions Needs work