Bug 399306 - It should be possible to disable cache
Summary: It should be possible to disable cache
Status: RESOLVED INTENTIONAL
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-02 13:09 UTC by Shridhar Daithankar
Modified: 2018-10-22 11:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.