mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r440
Полная очистка кеша в редисе. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@440 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
e1c46998d0
commit
583d106099
2 changed files with 9 additions and 2 deletions
|
@ -774,7 +774,14 @@ class cache_redis extends cache_common
|
||||||
{
|
{
|
||||||
if (!$this->connected) $this->connect();
|
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 ()
|
function is_installed ()
|
||||||
|
|
|
@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 Beta';
|
$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';
|
$bb_cfg['tp_release_date'] = '06-07-2012';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue