From: Rob Church Date: Fri, 4 May 2007 20:47:49 +0000 (+0000) Subject: * (bug 9662) Update configuration example [$wgUseMemcached no longer in use] X-Git-Tag: 1.31.0-rc.0~53082 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=a1f45be25b035f0f36b83f970697103fc8a0eec1;p=lhc%2Fweb%2Fwiklou.git * (bug 9662) Update configuration example [$wgUseMemcached no longer in use] * Minor spacing --- diff --git a/docs/memcached.txt b/docs/memcached.txt index 6752e9c81d..d4e2915fe2 100644 --- a/docs/memcached.txt +++ b/docs/memcached.txt @@ -29,7 +29,6 @@ can run multiple servers on one machine or on multiple machines on a network; storage can be distributed across multiple servers, and multiple web servers can use the same cache cluster. - ********************* W A R N I N G ! ! ! ! ! *********************** Memcached has no security or authentication. Please ensure that your server is appropriately firewalled, and that the port(s) used for @@ -54,8 +53,8 @@ on port 11000, using up to 64MB of memory) In your LocalSettings.php file, set: - $wgUseMemCached = true; - $wgMemCachedServers = array( "127.0.0.1:11000" ); + $wgMainCacheType = CACHE_MEMCACHED;; + $wgMemCachedServers = array( "127.0.0.1:11000" ); The wiki should then use memcached to cache various data. To use multiple servers (physically separate boxes or multiple caches @@ -66,10 +65,9 @@ usage evenly), make its entry a subarray: $wgMemCachedServers = array( "127.0.0.1:11000", # one gig on this box - array("192.168.0.1:11000", 2) # two gigs on the other box + array("192.168.0.1:11000", 2 ) # two gigs on the other box ); - == PHP client for memcached == As of this writing, MediaWiki includes version 1.0.10 of the PHP @@ -129,4 +127,4 @@ IP blocks: stores: array of arrays, for the BlockCache class cleared by: BlockCache:clear() -... more to come ... +... more to come ... \ No newline at end of file