Aleksander Machniak
2015-02-25 ab84cc15e5cb708b91b70bd81b96adc712e312d3
program/lib/Roundcube/rcube_cache.php
@@ -605,8 +605,10 @@
            $this->max_packet = 2097152; // default/max is 2 MB
            if ($this->type == 'db') {
                $value = $this->db->get_variable('max_allowed_packet', $this->max_packet);
                $this->max_packet = max($value, $this->max_packet) - 2000;
                if ($value = $this->db->get_variable('max_allowed_packet', $this->max_packet)) {
                    $this->max_packet = $value;
                }
                $this->max_packet -= 2000;
            }
            else if ($this->type == 'memcache') {
                $stats = $this->db->getStats();