Add a cache for `PermissionSystem.get_users_with_permission`.
Patch by Örjan Persson.
Closes #9032.
Authored by: cboos 2010-02-18
Parent: [r9202]
Child: [r9204]