diff --git a/ChangeLog b/ChangeLog index 0581f3c05..6d3c0ee1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-11-26 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoCache.m (_cacheValues:ofType:forLogin:): we + also fill the local cache with the new value to avoid ignoring it + next time the cache is invoked. + * SoObjects/SOGo/NSDictionary+BSJSONAdditions.m (+dictionaryWithJSONString:): method moved from NSDictionary into NSMutableDictionary for consistency. diff --git a/SoObjects/SOGo/SOGoCache.m b/SoObjects/SOGo/SOGoCache.m index acd932dd2..8f99d2083 100644 --- a/SoObjects/SOGo/SOGoCache.m +++ b/SoObjects/SOGo/SOGoCache.m @@ -270,6 +270,7 @@ static NSLock *lock; [key bytes], [key length], [value bytes], [value length], cleanupInterval, 0); + [localCache setObject: theAttributes forKey: keyName]; if (error != MEMCACHED_SUCCESS) [self logWithFormat: @"memcached error: unable to cache values with subtype '%@' for user '%@'", theType, theLogin];