So... What can I do to make than faster? Or should I not be using "has_permission" each time I need to know which permission logged in user have?
Em quarta-feira, 2 de março de 2011 12h48min55s UTC-3, Massimo Di Pierro escreveu: > > They are not cached. > > On Mar 2, 9:22 am, Ross Peoples <ross.peop...@gmail.com> wrote: > > I am finding myself using auth.has_membership() and > auth.has_permission() > > quite often in a module. Are either of these cached? I looked through > the > > Auth code a bit and didn't see anything, so I was wondering it if did it > > somewhere else. If not then I should probably write my own > > has_membership/has_permission function that returns a cached value or > calls > > the Auth methods. --