diff --git a/upload/common.php b/upload/common.php index ffa149f47..8db1f20f3 100644 --- a/upload/common.php +++ b/upload/common.php @@ -774,7 +774,14 @@ class cache_redis extends cache_common { if (!$this->connected) $this->connect(); - return ($this->connected) ? $this->redis->del($this->prefix . $name) : false; + if ($name) + { + return ($this->connected) ? $this->redis->del($this->prefix . $name) : false; + } + else + { + return ($this->connected) ? $this->redis->flushdb() : false; + } } function is_installed () diff --git a/upload/config.php b/upload/config.php index fe5dff4e1..1444d5145 100644 --- a/upload/config.php +++ b/upload/config.php @@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do // Increase number of revision after update $bb_cfg['tp_version'] = '2.5 Beta'; -$bb_cfg['tp_release_state'] = 'R439'; +$bb_cfg['tp_release_state'] = 'R440'; $bb_cfg['tp_release_date'] = '06-07-2012'; // Database