Полная очистка кеша в редисе. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@440 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
glix08 2012-07-05 20:53:00 +00:00
commit 583d106099
2 changed files with 9 additions and 2 deletions

View file

@ -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 ()

View file

@ -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