[glotpress-updates] [GlotPress] #451: Speed up permission checks

GlotPress noreply at wordpress.org
Tue Jun 9 17:59:12 UTC 2015


#451: Speed up permission checks
--------------------------+-----------------
 Reporter:  markoheijnen  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  1.0
Component:  performance   |    Version:  0.1
 Keywords:  dev-feedback  |
--------------------------+-----------------
 Currently a lot of duplicated MySQL queries are fired due to 3 checks
 inside GP_User->can(). They aren't slow calls but would be great to see
 how we could reduce them. One option would be to cache inside GP_User if
 the user is admin.

 Another way would be to do 1 query to get all the permissions of the user
 and then do all the work in PHP.

--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/451>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list