X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fmemcached.txt;h=d18b199e2636e96ad0c31ea79aaf35292d226e62;hb=ff287325b63920bb07720256d055dac4359b2fc5;hp=971a611a0dc27ceaca134711c83b79c2b8f2d8fe;hpb=e8b571fbf1a41ac2a2000b2a515393494d93a806;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/memcached.txt b/docs/memcached.txt index 971a611a0d..d18b199e26 100644 --- a/docs/memcached.txt +++ b/docs/memcached.txt @@ -1,5 +1,5 @@ -MediaWiki has optional support for memcached, a "high-performance, -distributed memory object caching system". For general information +MediaWiki has optional support for memcached, a "high-performance, +distributed memory object caching system". For general information on it, see: http://www.danga.com/memcached/ Memcached is likely more trouble than a small site will need, but @@ -10,7 +10,7 @@ in memory. == Installation == Packages are available for Fedora, Debian, Ubuntu and probably other -Linux distributions. If you there's no package available for your +Linux distributions. If there's no package available for your distribution, you can compile it from source. == Compilation == @@ -25,7 +25,7 @@ distribution, you can compile it from source. * memcached: http://www.danga.com/memcached/download.bml (as of this writing, 1.1.9 is current) - + Memcached and libevent are under BSD-style licenses. The server should run on Linux and other Unix-like systems... you @@ -40,9 +40,9 @@ memcached servers are not publicly accessible. Otherwise, anyone on the internet can put data into and read data from your cache. An attacker familiar with MediaWiki internals could use this to steal -passwords and email addresses, or to make themselves a sysop and -install malicious javascript on the site. There may be other types -of vulnerability, no audit has been done -- so be safe and keep it +passwords and email addresses, or to make themselves a sysop and +install malicious javascript on the site. There may be other types +of vulnerability, no audit has been done -- so be safe and keep it behind a firewall. ********************* W A R N I N G ! ! ! ! ! *********************** @@ -78,7 +78,7 @@ usage evenly), make its entry a subarray: == PHP client for memcached == MediaWiki uses a fork of Ryan T. Dean's pure-PHP memcached client. -The newer PECL module is not yet supported. +It also supports the PECL PHP extension for memcached. MediaWiki uses three object for object caching: * $wgMemc, controlled by $wgMainCacheType @@ -91,7 +91,7 @@ database. If the cache daemon can't be contacted, it should also disable itself fairly smoothly. By default, $wgMemc is used but when it is $parserMemc or $messageMemc -this is mentionned below. +this is mentioned below. == Keys used == @@ -237,9 +237,9 @@ Statistics: controlled by: $wgStatsMethod key: $wgDBname:stats:$key ex: wikibd:stats:request_with_session - stores: counter for statistics (see maintenance/stats.php script) + stores: counter for statistics (see maintenance/showCacheStats.php script) expiry: none (?) - cleared by: maintenance/clear_stats.php script + cleared by: maintenance/clearCacheStats.php script User: key: $wgDBname:user:id:$sId @@ -247,5 +247,5 @@ User: stores: instance of class User set in: User::saveToCache() cleared by: User::saveSettings(), User::clearSharedCache() - + ... more to come ...