summaryrefslogtreecommitdiff
path: root/docs/memcached.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/memcached.txt')
-rw-r--r--docs/memcached.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/memcached.txt b/docs/memcached.txt
index 6752e9c8..d4e2915f 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