mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
r439
Исправление ошибки MemcachePool::delete() [<a href='memcachepool.delete'>memcachepool.delete</a>]: Server 127.0.0.1 (tcp 11211, udp 0) failed with: CLIENT_ERROR bad command line format. На некоторых версиях memcache мог возникать конфликт из-за некорректного синтаксиса удаления строки + немного форматирования. Также обновление текстовой ссылки на поиск человека в ICQ. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@439 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
a25d5a954d
commit
e1c46998d0
3 changed files with 40 additions and 40 deletions
|
@ -399,9 +399,9 @@ class cache_memcache extends cache_common
|
||||||
{
|
{
|
||||||
if (!$this->connected) $this->connect();
|
if (!$this->connected) $this->connect();
|
||||||
|
|
||||||
if($name)
|
if ($name)
|
||||||
{
|
{
|
||||||
return ($this->connected) ? $this->memcache->delete($this->prefix . $name) : false;
|
return ($this->connected) ? $this->memcache->delete($this->prefix . $name, 0) : false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -501,7 +501,7 @@ class cache_sqlite extends cache_common
|
||||||
|
|
||||||
function rm ($name = '')
|
function rm ($name = '')
|
||||||
{
|
{
|
||||||
if($name)
|
if ($name)
|
||||||
{
|
{
|
||||||
$this->db->shard($this->prefix . $name);
|
$this->db->shard($this->prefix . $name);
|
||||||
$result = $this->db->query("DELETE FROM ". $this->cfg['table_name'] ." WHERE cache_name = '". sqlite_escape_string($this->prefix . $name) ."'");
|
$result = $this->db->query("DELETE FROM ". $this->cfg['table_name'] ." WHERE cache_name = '". sqlite_escape_string($this->prefix . $name) ."'");
|
||||||
|
@ -668,7 +668,7 @@ class sqlite_common extends cache_common
|
||||||
|
|
||||||
function rm ($name = '')
|
function rm ($name = '')
|
||||||
{
|
{
|
||||||
if($name)
|
if ($name)
|
||||||
{
|
{
|
||||||
$this->db->shard($this->prefix . $name);
|
$this->db->shard($this->prefix . $name);
|
||||||
$result = $this->db->query("DELETE FROM ". $this->cfg['table_name'] ." WHERE cache_name = '". sqlite_escape_string($this->prefix . $name) ."'");
|
$result = $this->db->query("DELETE FROM ". $this->cfg['table_name'] ." WHERE cache_name = '". sqlite_escape_string($this->prefix . $name) ."'");
|
||||||
|
@ -751,7 +751,7 @@ class cache_redis extends cache_common
|
||||||
$this->cur_query = "cache->set('$name')";
|
$this->cur_query = "cache->set('$name')";
|
||||||
$this->debug('start');
|
$this->debug('start');
|
||||||
|
|
||||||
if($this->redis->set($this->prefix . $name, serialize($value)))
|
if ($this->redis->set($this->prefix . $name, serialize($value)))
|
||||||
{
|
{
|
||||||
if ($ttl > 0)
|
if ($ttl > 0)
|
||||||
{
|
{
|
||||||
|
@ -943,7 +943,7 @@ class cache_file extends cache_common
|
||||||
$this->cur_query = "cache->set('$name')";
|
$this->cur_query = "cache->set('$name')";
|
||||||
$this->debug('start');
|
$this->debug('start');
|
||||||
|
|
||||||
if(file_exists($filename))
|
if (file_exists($filename))
|
||||||
{
|
{
|
||||||
require($filename);
|
require($filename);
|
||||||
}
|
}
|
||||||
|
@ -986,7 +986,7 @@ class cache_file extends cache_common
|
||||||
function rm ($name = '')
|
function rm ($name = '')
|
||||||
{
|
{
|
||||||
$clear = false;
|
$clear = false;
|
||||||
if($name)
|
if ($name)
|
||||||
{
|
{
|
||||||
$filename = $this->dir . clean_filename($this->prefix . $name) . '.php';
|
$filename = $this->dir . clean_filename($this->prefix . $name) . '.php';
|
||||||
if (file_exists($filename))
|
if (file_exists($filename))
|
||||||
|
@ -1292,7 +1292,7 @@ class datastore_memcache extends datastore_common
|
||||||
$this->cur_query = null;
|
$this->cur_query = null;
|
||||||
$this->num_queries++;
|
$this->num_queries++;
|
||||||
|
|
||||||
$this->memcache->delete($title);
|
$this->memcache->delete($title, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,8 +56,8 @@ $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'] = 'R438';
|
$bb_cfg['tp_release_state'] = 'R439';
|
||||||
$bb_cfg['tp_release_date'] = '04-07-2012';
|
$bb_cfg['tp_release_date'] = '06-07-2012';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
|
|
@ -152,7 +152,7 @@ if (!empty($page_cfg['load_tpl_vars']) AND $vars = array_flip($page_cfg['load_tp
|
||||||
|
|
||||||
'EMAIL_URL' => BB_ROOT ."profile.php?mode=email&u=",
|
'EMAIL_URL' => BB_ROOT ."profile.php?mode=email&u=",
|
||||||
'FORUM_URL' => BB_ROOT . FORUM_URL,
|
'FORUM_URL' => BB_ROOT . FORUM_URL,
|
||||||
'ICQ_URL' => 'http://wwp.icq.com/scripts/search.dll?to=',
|
'ICQ_URL' => 'http://www.icq.com/people/&uin=',
|
||||||
'PM_URL' => BB_ROOT . PM_URL,
|
'PM_URL' => BB_ROOT . PM_URL,
|
||||||
'PROFILE_URL' => BB_ROOT . PROFILE_URL,
|
'PROFILE_URL' => BB_ROOT . PROFILE_URL,
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue