phpBB

Code Changes

File: phpbb/cache/driver/memcache.php

  Unmodified   Added   Modified   Removed
Line 50Line 50
		parent::__construct();

$this->memcache = new \Memcache;

		parent::__construct();

$this->memcache = new \Memcache;

		foreach(explode(',', PHPBB_ACM_MEMCACHE) as $u)

		foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)

		{

		{

			$parts = explode('/', $u);
$this->memcache->addServer(trim($parts[0]), trim($parts[1]));

			preg_match('#(.*)/(\d+)#', $u, $parts);
$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;
}