roundcubemail/program/lib/Roundcube/rcube_imap_cache.php
function remove_thread($mailbox = null)
    {
        $this->db->query(
            "DELETE FROM {$this->thread_table}"
            ." WHERE `user_id` = ?"
                .(strlen($mailbox) ? " AND `mailbox` = ".$this->db->quote($mailbox) : ""),
            $this->userid
        );

        if (strlen($mailbox)) {
            unset($this->icache[$mailbox]['thread']);
            // Thread data removed, set flag to skip SELECT query in get_thread()
            $this->icache[$mailbox]['thread_queried'] = true;
        }
        else {
            $this->icache = array();
        }
    }
function remove_thread($mailbox = null)
    {
        $this->db->query(
            "DELETE FROM {$this->thread_table}"
            ." WHERE `user_id` = ?"
                .(strlen($mailbox) ? " AND `mailbox` = ".$this->db->quote($mailbox) : ""),
            $this->userid
        );

        if (strlen($mailbox)) {
            unset($this->icache[$mailbox]['thread']);
            // Thread data removed, set flag to skip SELECT query in get_thread()
            $this->icache[$mailbox]['thread_queried'] = true;
        }
        else {
            $this->icache = array();
        }
    }
function remove_thread ( $ mailbox = null ) { $ this -> db -> query ( "DELETE FROM {$this->thread_table}" . " WHERE `user_id` = ?" . ( strlen ( $ mailbox ) ? " AND `mailbox` = " . $ this -> db -> quote ( $ mailbox ) : "" ) , $ this -> userid ) ; if ( strlen ( $ mailbox ) ) { unset ( $ this -> icache [ $ mailbox ] [ 'thread' ] ) ; // Thread data removed, set flag to skip SELECT query in get_thread() $ this -> icache [ $ mailbox ] [ 'thread_queried' ] = true ; } else { $ this -> icache = array ( ) ; } }
Clears thread cache.

@param string  $mailbox     Folder name
Clears thread cache .