how to clean the ims ldap cache

Hi all,

i was wondering if there is a command to clean out the contents of the ldap cache inside the messaging. When running tests, I often have to modify the contents of ldap entries and then I have to wait for the cache to expire after service.ldapmemcachettl seconds before running the test again. The only method I found to clean the cache is restarting the iMS, but this is often impossible.

I wouldn't like to disable the cache, of course, but the chance to clean its contents would be appreciated.

TIA.

[535 byte] By [claudio_tassinia] at [2007-11-27 6:19:14]
# 1

Hi,

There isn't a command that I know of. Are you sure it is the 'service' cache that is in use, this is used by store process (imapd/mshttpd/popd) and not necessarily MTA processes (dispatcher/tcp_server etc.). What 'testing' are you doing?

The only thing you may want to try is the ./refresh command (in /opt/SUNWmsgsr/sbin). Not sure if that would also 'refresh' the cache contents - it may also be useful for changing cache settings to lower-value and back again without service interruption (assuming cache settings is one that can be refreshed - that's an exercise for the reader).

Also you could reduce the ttl to say 10 seconds or something like that. Long enough so that the caches are still effective, short enough to do 'testing'. Of course you would want to increase it back after you had finished.

Of course I have to ask, why are you 'testing' accounts on a production server - that's what development/test environments are for.

Regards,

Shane.

shane_hjortha at 2007-7-12 17:33:39 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...