Bug 399306

Summary: It should be possible to disable cache
Product: [Frameworks and Libraries] Akonadi Reporter: Shridhar Daithankar <ghodechhap>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: dvratil
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Shridhar Daithankar 2018-10-02 13:09:06 UTC
SUMMARY

For local resources, it should be possible to bypass akonadi cache and fetch the items directly from the source, all the times.

Additionally, it should be possible to disable cache for any other resources for debugging purposes as well as resources that are not correctly recognised as local.

STEPS TO REPRODUCE
N/A


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
N/A
Comment 1 Daniel Vrátil 2018-10-22 11:14:45 UTC
For local resources, we typically keep around only metadata and email envelope in the Akonadi cache. The actual email headers and body are loaded from the resource on demand, cached inside Akonadi temporarily and then expired after some configured period (usually 5 minutes or so). The same can be configured for any resource (for example the IMAP resource works the same way unless you select "Download email for offline access") - the caching and expiration policy can actually be configured on per folder basis, but generally, you configure it for the entire resource (by changing it in the top-level folder) and let the subfolders inherit the policies.

It is not possible to bypass the caching completely (that is including the metadata), not even for local resources, which is by design.