My problem is that caching doesn't seem to work at all.
If I do a query into some organization and then repeat the same query
immediately afterwards, LIBLDAP still contacts the server instead of
looking up the cache.
I set the cache options like this:
m_current_ld = ldap_open(server, port);
if (m_current_ld) // success
{
TRACE0("ldap_open: Success!\n");
// First: enable the cache
int result = ldap_enable_cache( m_current_ld, 10000 , 1000 );
if (result < 0)
TRACE0("Cache could not be enabled\n");
...
I thought the statements above set the cache timeout to 10000 seconds
(which by the way should be a large value....)
Have I overlooked something, or what?
Nils Andreas Thommesen -- Nils.Thommesen@maxware.no
- - - - - - - - - - - - - - - - - - - - - -
Work: Maxware, Pirsenteret, N-7005 Trondheim; +47 73 545 722
Home: Klostergata 37 B,7030 Trondheim,Norway; +47 73 52 97 24
Fax : +47 73 545 750
WWW : http://www.maxware.no/~nat http://www.maxware.no/notis
- - - - - - - - - - - - - - - - - - - - - -
I'm left-handed, left-eyed, left-footed but not left behind!