From 5cf5ee66c1fd3e86f009124aee58df26780ce311 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 18 May 2011 07:48:47 -0400 Subject: [PATCH] - Added general rcube_cache class with memcache support - Improved caching performance by skipping writes of unchanged data - Option enable_caching replaced by imap_cache and messages_cache options --- config/main.inc.php.dist | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist index 3391d16..169a3a0 100644 --- a/config/main.inc.php.dist +++ b/config/main.inc.php.dist @@ -109,6 +109,13 @@ // Optional IMAP authentication password to be used for imap_auth_cid $rcmail_config['imap_auth_pw'] = null; +// Type of IMAP indexes cache. Supported values: 'db' and 'memcache'. +$rcmail_config['imap_cache'] = null; + +// Enables messages cache. Only 'db' cache is supported. +$rcmail_config['messages_cache'] = false; + + // ---------------------------------- // SMTP // ---------------------------------- @@ -168,10 +175,6 @@ // use this folder to store temp files (must be writeable for apache user) $rcmail_config['temp_dir'] = 'temp/'; - -// enable caching of messages and mailbox data in the local database. -// this is recommended if the IMAP server does not run on the same machine -$rcmail_config['enable_caching'] = false; // lifetime of message cache // possible units: s, m, h, d, w -- Gitblit v1.9.1