-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: Cache authorizations in the AppVoter
This was something that bothered me for a long time. The authorizations were reloaded from the database for each `is_granted` call. On a basic ticket page (just created), there were 23 database calls. Now, it's 10 calls.
- Loading branch information
1 parent
14e96b1
commit beccdd0
Showing
2 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters