[dev] Caching of Ldap groups

Michael M Slusarz slusarz at horde.org
Mon Apr 28 21:03:55 UTC 2014


Quoting Lukas Macura <macura at opf.slu.cz>:

> Hi to all,
>
> we are implementing horde in campus and we use LDAP groups. There  
> are big problems with speed, especially in kronolith because of
>  ListGroups function which is called many times and each time it  
> searches in LDAP.
>
> We made small patch for ./framework/Group/lib/Horde/Group/Ldap.php  
> which uses memcache for listGroups.  It is much more proof of  
> concept, but it helped a lot. Before this patch, kronolith events  
> loaded after 12seconds and it took about 50 LDAP searches. Now,  
> everything loads up to 2 seconds.

1. Horde_Cache should be used instead of memcache directly.
2. The code should first be refactored to ensure that duplicate LDAP  
searches are not occurring in a single access, which is what I believe  
you are claiming.  Then you would get the 6x speedup pre-caching.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list