G'day,
How would I go about adding memcached configuration to an existing MediaWiki 1.8 installation? I have scrounged config/index.php, and it seems I haven't found it (even though it probably was in front of my face all the time).
TIA, Jashank
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."
and Dorozynski said: "Turck mmcache is not developing any more, and existing code supports php up to 4 version only, and not version 5. Try eAccelerator (http://eAccelerator.net) rel. 0.9.5, its support php version as 5 as 4. However Brion once recommended APC (http://pecl.php.net/package
/APC) as better than eAccelerator :-))
"
On 12/31/06, Jashank jashank.jeremy@gmail.com wrote:
G'day,
How would I go about adding memcached configuration to an existing MediaWiki 1.8 installation? I have scrounged config/index.php, and it seems I haven't found it (even though it probably was in front of my face all the time).
TIA, Jashank
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 01/01/07, Chris Smeder smeder.c@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
mediawiki-l@lists.wikimedia.org