From 82866407277315c4192b089c59d0a484d7fce1a3 Mon Sep 17 00:00:00 2001 From: "fourat.zouari" Date: Fri, 23 Mar 2007 17:22:36 +0000 Subject: Fixing cache clearing bug. close #1484295 git-svn-id: https://svn.roundcube.net/trunk@517 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc index 871b6c1f4..438922b0a 100644 --- a/roundcubemail/program/include/rcube_imap.inc +++ b/roundcubemail/program/include/rcube_imap.inc @@ -580,8 +580,9 @@ class rcube_imap $a_msg_headers = array(); $deleted_count = $this->_fetch_headers($mailbox, $msgs, $a_msg_headers, $cache_key); - // delete cached messages with a higher index than $max - $this->clear_message_cache($cache_key, $max); + // delete cached messages with a higher index than $max+1 + // Changed $max to $max+1 to fix this bug : #1484295 + $this->clear_message_cache($cache_key, $max + 1); // kick child process to sync cache -- cgit v1.2.3