summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-11 00:11:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-11 00:11:25 +0000
commit7cb81641f44874b12945bbd3cceb209866275833 (patch)
treea0044e1b177398cc8345cdf7284d1cce542bf7e8
parentb19e36a84a160d2a0ece251e462e00b0b1b8774d (diff)
downloadtdepim-7cb81641f44874b12945bbd3cceb209866275833.tar.gz
tdepim-7cb81641f44874b12945bbd3cceb209866275833.zip
CardDAV cache improvement
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1148528 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kresources/carddav/resource.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kresources/carddav/resource.cpp b/kresources/carddav/resource.cpp
index d974bd826..f79d82235 100644
--- a/kresources/carddav/resource.cpp
+++ b/kresources/carddav/resource.cpp
@@ -69,9 +69,9 @@ const int ResourceCardDav::DEFAULT_SAVE_INTERVAL = 10;
ResourceCardDav::ResourceCardDav( const KConfig *config ) :
ResourceCached(config)
- , mLock(true)
, readLockout(false)
, mAllWritesComplete(false)
+ , mLock(true)
, mPrefs(NULL)
, mLoader(NULL)
, mWriter(NULL)
@@ -146,6 +146,7 @@ bool ResourceCardDav::load() {
log(QString("doLoad(%1)").arg(syncCache));
+ // FIXME KABC
//clearCache();
log("loading from cache");
@@ -493,6 +494,8 @@ bool ResourceCardDav::parseData(const QString& data) {
log("ensuring read only flag honored");
ensureReadOnlyFlagHonored();
}
+ log("cleaning up cache");
+ cleanUpCache( addressees );
log("saving to cache");
saveCache();
}