From 7cb81641f44874b12945bbd3cceb209866275833 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 11 Jul 2010 00:11:25 +0000 Subject: CardDAV cache improvement git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1148528 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kresources/carddav/resource.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.1