On 01/01/07, Chris Smeder <smeder.c(a)gmail.com> wrote:
I had the same question, Brion said:
"You shouldn't do anything; the primary benefit of turck mmcache and
other PHP opcode caches is caching the compiled PHP scripts, which
requires no configuration in MediaWiki."
memcached is *not* the same as Turck MMCache, eAccelerator or APC.
To instruct an existing MediaWiki installation to use memcached, edit
LocalSettings.php:
* Set $wgMainCacheType = CACHE_MEMCACHED;
* Set up $wgMemCachedServers; the array format is specified in
includes/DefaultSettings.php (seems to be a straight array of IP
addresses with ports, e.g. array( '10.6.160.25:11000',
'10.6.160.26:11000' ) )
There are some other configuration variables relating to memcached;
see DefaultSettings.php for more. I *think* $wgUseMemCached is no
longer used (in favour of $wgMainCacheType et al.)...there's also
$wgMemCachedPersistent.
The other two caches; $wgMessageCacheType and $wgParserCacheType are
by default set to CACHE_ANYTHING...if memcached is available (and
MediaWiki can connect to your memcached daemons), then it will be used
in preference to the other fallbacks.
Rob Church