You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each query for rights and groups sends a query to the database.
But you can save all rights and groups in a static variable at the first query and search only the variable at next query.
as an an example:
I use in a template file 6 times the function has_permission(). this function sends 2 queries to the database each time. total of 12 queries. . But you can reduce that to 1 or 2.
Thanks for your great job
The text was updated successfully, but these errors were encountered:
Each query for rights and groups sends a query to the database.
But you can save all rights and groups in a static variable at the first query and search only the variable at next query.
as an an example:
I use in a template file 6 times the function has_permission(). this function sends 2 queries to the database each time. total of 12 queries. . But you can reduce that to 1 or 2.
Thanks for your great job
The text was updated successfully, but these errors were encountered: