[Vtigercrm-developers] caching user privileges
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?
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
> 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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtigercrm-developers