]> git.mjollnir.org Git - moodle.git/commit
init_memcached(): only use pconnect if configured to do so
authormartinlanghoff <martinlanghoff>
Wed, 27 Dec 2006 22:45:13 +0000 (22:45 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 27 Dec 2006 22:45:13 +0000 (22:45 +0000)
commit9c967c33fb78624d0f360b4a3cac684ea09a45a0
tree4e5a0715502a1d267b7353add210e34621c3d4f5
parent419e1d937ee9f1351be2e6882a93016f08abec2a
init_memcached(): only use pconnect if configured to do so

Make pconnections optional - only use pconnect if $CFG->memcachedpconn is
set. In current versions of the memcache client in PECL (v2.0.1),
memcache_pconnect() is buggy and will segfault if reusing a pconnection
to a server that has gone away or restarted.

And hope for a more stable client library in PECL ;-)
lib/setuplib.php