On 08/27/2014 02:26 PM, Sven Hartge wrote:
The documentation mentions that caching may even reduce performance in some situations but does not specify which situations. So far I have not be able to experience any slowdowns or speedups while using the index cache so I don't know if I gain anything by using or not-using it.
Depends on what imap server are you using and the mailbox sizes. On small mailboxes (number of messages, number of folders) you might not notice. Also, do not forget that some imap servers like dovecot do caching on their own and in general SORT, THREAD, LIST, LSUB, STATUS commands are fast.
Using cache in big deployments might be a kind of load balancing, because you take over some load from IMAP to DB.