diff --git a/ChangeLog b/ChangeLog index 9d97a55a7..22e580b7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-18 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoCache.m (-disableLocalCache): new method to + disable the local cache altogether (helper for non-WO access). + 2011-11-17 Wolfgang Sourdeau * OpenChange/MAPIStoreSamDBUtils.m: new module containing helpers diff --git a/SoObjects/SOGo/SOGoCache.h b/SoObjects/SOGo/SOGoCache.h index 7f8fbb7fb..663c7934d 100644 --- a/SoObjects/SOGo/SOGoCache.h +++ b/SoObjects/SOGo/SOGoCache.h @@ -54,6 +54,7 @@ + (SOGoCache *) sharedCache; - (void) disableRequestsCache; +- (void) disableLocalCache; - (void) killCache; diff --git a/SoObjects/SOGo/SOGoCache.m b/SoObjects/SOGo/SOGoCache.m index 3cb184303..8617a9c29 100644 --- a/SoObjects/SOGo/SOGoCache.m +++ b/SoObjects/SOGo/SOGoCache.m @@ -154,6 +154,12 @@ static memcached_st *handle = NULL; requestsCacheEnabled = NO; } +- (void) disableLocalCache +{ + [localCache release]; + localCache = nil; +} + - (void) killCache { [cache removeAllObjects];