From 5a31a100c6f7252e84856ea4e37217c7007cbd4d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 26 Nov 2009 19:32:24 +0000 Subject: [PATCH] Monotone-Parent: 367e72af9d08f48f2e598a1e344c784b6bc4ffac Monotone-Revision: f617866a91a29b390f0a2207ceb975bf2b2eeaa3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-26T19:32:24 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoCache.m | 1 + 2 files changed, 5 insertions(+) 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];