mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 19:26:53 +02:00
Merge branch '3.1.x' into 3.2.x
This commit is contained in:
4
phpBB/phpbb/cache/driver/memcache.php
vendored
4
phpBB/phpbb/cache/driver/memcache.php
vendored
@ -52,8 +52,8 @@ class memcache extends \phpbb\cache\driver\memory
|
|||||||
$this->memcache = new \Memcache;
|
$this->memcache = new \Memcache;
|
||||||
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
||||||
{
|
{
|
||||||
$parts = explode('/', $u);
|
preg_match('#(.*)/(\d+)#', $u, $parts);
|
||||||
$this->memcache->addServer(trim($parts[0]), trim($parts[1]));
|
$this->memcache->addServer(trim($parts[1]), (int) trim($parts[2]));
|
||||||
}
|
}
|
||||||
$this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0;
|
$this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0;
|
||||||
}
|
}
|
||||||
|
4
phpBB/phpbb/cache/driver/memcached.php
vendored
4
phpBB/phpbb/cache/driver/memcached.php
vendored
@ -67,8 +67,8 @@ class memcached extends \phpbb\cache\driver\memory
|
|||||||
|
|
||||||
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
|
||||||
{
|
{
|
||||||
$parts = explode('/', $u);
|
preg_match('#(.*)/(\d+)#', $u, $parts);
|
||||||
$this->memcached->addServer(trim($parts[0]), trim($parts[1]));
|
$this->memcache->addServer(trim($parts[1]), (int) trim($parts[2]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user