roundcubemail/program/lib/Roundcube/rcube_session.php
protected function get_cache($key)
    {
        // no session data in cache (read() returns false)
        if (!$this->key) {
            $cache = null;
        }
        // use internal data for fast requests (up to 0.5 sec.)
        else if ($key == $this->key && (!$this->vars || microtime(true) - $this->start < 0.5)) {
            $cache = $this->vars;
        }
        else { // else read data again
            $cache = $this->read($key);
        }

        return $cache;
    }
protected function get_cache($key)
    {
        // no session data in cache (read() returns false)
        if (!$this->key) {
            $cache = null;
        }
        // use internal data for fast requests (up to 0.5 sec.)
        else if ($key == $this->key && (!$this->vars || microtime(true) - $this->start < 0.5)) {
            $cache = $this->vars;
        }
        else { // else read data again
            $cache = $this->read($key);
        }

        return $cache;
    }
protected function get_cache ( $ key ) { // no session data in cache (read() returns false) if ( ! $ this -> key ) { $ cache = null ; } // use internal data for fast requests (up to 0.5 sec.) else if ( $ key == $ this -> key && ( ! $ this -> vars || microtime ( true ) - $ this -> start < 0.5 ) ) { $ cache = $ this -> vars ; } else { // else read data again $ cache = $ this -> read ( $ key ) ; } return $ cache ; }
See if we have vars of this key already cached, and if so, return them.

@param string $key Session ID

@return string
See if we have vars of this key already cached and if so return them .