[Vtigercrm-developers] caching user privileges
Nicolas Larcipretti
niclarcipretti at gmail.com
Fri Jan 27 09:48:23 PST 2012
Can I ask you why are you recalculating user sharing privileges after
insert a new user?
Cheers
Nicolas
2012/1/27 Adam Heinz <amh at metricwise.net>
> Time to get another frequent user request off my plate! We currently are
> forced to postpone recalculation of sharing rules until the evenings when
> the system is under lighter load. This means that if a new user is added
> in the morning, their permissions aren't properly configured until the next
> day.
>
> What I plan to prototype here is first to encapsulate privilege access
> inside a class instead of
> require('user_privileges/user_privileges_'.$current_user->id.'.php') all
> over the place. From there, I plan to experiment with using ADOdb caching (
> http://phplens.com/lens/adodb/docs-adodb.htm#caching) -- flushing the
> cache when privileges are changed, then allowing them to lazy load as
> needed by the application.
>
> I'll open a ticket and start submitting patches as soon as I have anything
> worth showing. Comments welcome!
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120127/43c3a87a/attachment-0002.html
More information about the vtigercrm-developers
mailing list