1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 07:07:51 +02:00

Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10110] Remove multi-server syntax from Redis ACM.

Conflicts:
	phpBB/includes/cache/driver/redis.php
This commit is contained in:
Igor Wiedler 2011-06-11 12:06:29 +02:00
commit 0cad4ed49f

View File

@ -25,12 +25,6 @@ if (!defined('PHPBB_ACM_REDIS_HOST'))
define('PHPBB_ACM_REDIS_HOST', 'localhost');
}
if (!defined('PHPBB_ACM_REDIS'))
{
//can define multiple servers with host1/port1,host2/port2 format
define('PHPBB_ACM_REDIS', PHPBB_ACM_REDIS_HOST . '/' . PHPBB_ACM_REDIS_PORT);
}
/**
* ACM for Redis
*
@ -51,11 +45,7 @@ class phpbb_cache_driver_redis extends phpbb_cache_driver_memory
parent::__construct();
$this->redis = new Redis();
foreach (explode(',', PHPBB_ACM_REDIS) as $server)
{
$parts = explode('/', $server);
$this->redis->connect(trim($parts[0]), trim($parts[1]));
}
$this->redis->connect(PHPBB_ACM_REDIS_HOST, PHPBB_ACM_REDIS_PORT);
if (defined('PHPBB_ACM_REDIS_PASSWORD'))
{