﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
1488172,Disable messages cache if imap host is localhost,lucaferr,,"Hi,
in my Roundcube installation I have some users using external IMAP servers and some others using a local Dovecot.
I have to enable messages_cache because it speeds up external servers requests, but it slows down local requests.
With just 4 lines of code in /program/include/rcmail.php at line 609 (0.6 stable) I've managed to disable messages_cache for users connecting to a local server.

{{{
if (($imap_cache || $messages_cache) && ($_SESSION['imap_host'] == '127.0.0.1' || $_SESSION['imap_host'] == 'localhost')) {
  $imap_cache = null;
  $messages_cache = false;
}
}}}

This speeded up my connections to local server with default options from a loading time of 11 seconds to 3 seconds!
I suggest to implement this improvement in future versions if you like it.
Thanks!
Luca",Feature Requests,closed,5,0.7-beta,Core functionality,0.6,minor,wontfix,,
