[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim-runtime/KDE/4.7] resources/mixedmaildir: Set a sane cache
From:       Volker Krause <vkrause () kde ! org>
Date:       2011-09-27 17:28:44
Message-ID: 20110927172844.072E8A60B9 () git ! kde ! org
[Download RAW message or body]

Git commit d78adbcfc4fdd0db0445b02d499a32fb914dde1e by Volker Krause.
Committed on 16/09/2011 at 14:30.
Pushed by vkrause into branch 'KDE/4.7'.

Set a sane cache timeout for the mixedmaildir resource.
(cherry picked from commit 9b0411aea0fc73be17e6b9982c1d4ea81f87317c)

M  +1    -0    resources/mixedmaildir/mixedmaildirstore.cpp

http://commits.kde.org/kdepim-runtime/d78adbcfc4fdd0db0445b02d499a32fb914dde1e

diff --git a/resources/mixedmaildir/mixedmaildirstore.cpp b/resources/mixedmaildir/mixedmaildirstore.cpp
index 7ba142f..ccefb12 100644
--- a/resources/mixedmaildir/mixedmaildirstore.cpp
+++ b/resources/mixedmaildir/mixedmaildirstore.cpp
@@ -2183,6 +2183,7 @@ void MixedMaildirStore::setTopLevelCollection( const Collection &collection )
   cachePolicy.setInheritFromParent( false );
   cachePolicy.setLocalParts( QStringList() << MessagePart::Envelope );
   cachePolicy.setSyncOnDemand( true );
+  cachePolicy.setCacheTimeout( 1 );
 
   Collection modifiedCollection = collection;
   modifiedCollection.setContentMimeTypes( contentMimeTypes );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic