Discussion:
[Openinteract-dev] Caching of group objects
A***@Bertelsmann.de
2004-12-24 08:32:01 UTC
Permalink
Hello all,

there is one detail of the caching of group objects in the user session, that might have negative effects. What I noticed is, that the whole group object is cached and not only the ID of the group, which is needed for the security check. Therefore, if you have a group with a few hundred Users in it, you add quite some size to the session.

I my case, this is currently 85k only for the group cache ! Still I am convinced, that caching the data needed for the sys_security check makes sense. If I remember right, the code uses s th like $theuser->groups to get all group objects, which then loads all groups including their members, although the members will never be needed here for the security check.

Does anyone have a good idea, who to change this ? How about lazy loading the members ? How about changing the group check in the security implementation ?

Mit freundlichen Grüßen

Andreas Nolte

Leitung IT

-------------------------------------------------

arvato direct services

Olympiastraße 1

26419 Schortens

Germany

http://www.arvato.com/

***@bertelsmann.de

Telefon +49 (0) 44 21 - 76-84002

Telefax +49 (0) 44 21 - 76-84111

Loading...