[TYPO3-core] FYI: Fixed issue #10614: update the caching framework to the latest version as in FLOW3

Dmitry Dulepov dmitry at typo3.org
Sun Mar 8 18:19:38 CET 2009


Hi!

Dmitry Dulepov wrote:
> Did you also test memcached backend? I am asking because I can test it live if you did not have time/chance :)

Btw, I think I found a error in memcached backend. There is a variable that is assigned but not used. I think it is a bug. This is near line 136:

	if (substr($serverConfiguration, 0, 6) === 'tcp://') {
		$server = substr($serverConfiguration, 6);
	}
	if (strstr($serverConfiguration, ':') !== FALSE) {
		list($host, $port) = explode(':', $serverConfiguration, 2);
	} else {
		$host = $serverConfiguration;
		$port = $defaultPort;
	}

I think it should be $serverConfiguration, not $server because of the processing in the the second "if".

This configuration change also means that existing memcached installations should change their configuration from:
	'servers' => array('localhost:11211'), 
to:
	'servers' => array('tcp://localhost:11211'), 

-- 
Dmitry Dulepov
TYPO3 core team
http://dmitry-dulepov.com/
"Computers are so unreliable... just like people" (Major Cain, "Resident Evil: Apocalypse")


More information about the TYPO3-team-core mailing list