roundcubemail/program/lib/Roundcube/rcube_imap.php
public function set_messages_caching($set, $mode = null)
    {
        if ($set) {
            $this->messages_caching = true;

            if ($mode && ($cache = $this->get_mcache_engine())) {
                $cache->set_mode($mode);
            }
        }
        else {
            if ($this->mcache) {
                $this->mcache->close();
            }
            $this->mcache = null;
            $this->messages_caching = false;
        }
    }
public function set_messages_caching($set, $mode = null)
    {
        if ($set) {
            $this->messages_caching = true;

            if ($mode && ($cache = $this->get_mcache_engine())) {
                $cache->set_mode($mode);
            }
        }
        else {
            if ($this->mcache) {
                $this->mcache->close();
            }
            $this->mcache = null;
            $this->messages_caching = false;
        }
    }
public function set_messages_caching ( $ set , $ mode = null ) { if ( $ set ) { $ this -> messages_caching = true ; if ( $ mode && ( $ cache = $ this -> get_mcache_engine ( ) ) ) { $ cache -> set_mode ( $ mode ) ; } } else { if ( $ this -> mcache ) { $ this -> mcache -> close ( ) ; } $ this -> mcache = null ; $ this -> messages_caching = false ; } }
Enable or disable messages caching

@param boolean $set  Flag
@param int     $mode Cache mode
Enable or disable messages caching