diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_imap.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc index 5b3efb80f..909af8de1 100644 --- a/program/include/rcube_imap.inc +++ b/program/include/rcube_imap.inc @@ -2228,6 +2228,9 @@ class rcube_imap */ function remove_message_cache($key, $index) { + if (!$this->caching_enabled) + return; + $this->db->query( "DELETE FROM ".get_table_name('messages')." WHERE user_id=? @@ -2243,6 +2246,9 @@ class rcube_imap */ function clear_message_cache($key, $start_index=1) { + if (!$this->caching_enabled) + return; + $this->db->query( "DELETE FROM ".get_table_name('messages')." WHERE user_id=? |