Skip to content
Discussion options

You must be logged in to vote

I was able to solve this issue myself by overriding the authorization trait in Resource class. I found out that for each resource there are like 4 call to Policy if it exists and a call to create policy. By caching it, I was able to improve from 5 sec for 90 resources down to less than 1 sec. Hopefully future release will allow policy to be cache by session rather than calling it so many times.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jjc704
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant