summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-05-17 15:18:12 +0000
committerthomascube <thomas@roundcube.net>2007-05-17 15:18:12 +0000
commitffb0b014e77d5831111cee4bc317ff365ef168b7 (patch)
tree4987b9dbc8c60fbcae5b0bbf431c8b9d8cceb7b9 /program/include
parent028953575bedd6ac1b8fbdee1665de7d709f6cb5 (diff)
Always respect 'enable_caching' config param
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index c0016d332..dc18454c5 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -1999,7 +1999,7 @@ class rcube_imap
static $sa_message_index = array();
// empty key -> empty array
- if (empty($key))
+ if (!$this->caching_enabled || empty($key))
return array();
if (!empty($sa_message_index[$key]) && !$force)
@@ -2024,7 +2024,7 @@ class rcube_imap
function add_message_cache($key, $index, $headers, $struct=null)
{
- if (empty($key) || !is_object($headers) || empty($headers->uid))
+ if (!$this->caching_enabled || empty($key) || !is_object($headers) || empty($headers->uid))
return;
// check for an existing record (probly headers are cached but structure not)