From 5eccd63a2bf8757c0c61211f2f5a021b887fe29e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 18 Nov 2011 15:14:31 +0000 Subject: [PATCH] Monotone-Parent: 77ad8a694cd0c4e8f61d9c0ba6162d0d8340c0e7 Monotone-Revision: d102adf292e54c9c4f3572b83e38879d24b721d0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-11-18T15:14:31 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ SoObjects/SOGo/SOGoCache.h | 1 + SoObjects/SOGo/SOGoCache.m | 6 ++++++ 3 files changed, 12 insertions(+) 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];