MediaWiki  master
docs/memcached.txt File Reference

Typedefs

using $wgMainCacheType = CACHE_MEMCACHED
 

Functions

The wiki should then use
memcached to cache various
data To use multiple just add
more items to the array To
increase the weight of a make
its entry a 
array ("192.168.0.1:11211", 2))
 
storage can be distributed
across multiple 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 and that the 
port (s) used for memcached servers are not publicly accessible.Otherwise
 
The wiki should then use
memcached to cache various
data To use multiple just add
more items to the array To
increase the weight of
server (say, because it has twice the memory of the others and you want to spread usage evenly)
 
The wiki should then use
memcached to cache various
data To use multiple 
servers (physically separate boxes or multiple caches on one machine on a large-memory x86 box)
 

Variables

controlled by $wgMainCacheType
controlled by
$wgParserCacheType * 
$messageMemc
 
controlled by $wgMainCacheType * $parserMemc
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control default value
for MediaWiki still create a
but requests to it are no ops
and we always fall through to
the database If the cache
daemon can t be it should also
disable itself fairly smoothly
By $wgMemc is used but when it
is $parserMemc or $messageMemc
this is mentioned 
$wgDBname
 
 $wgMemCachedServers = array( "127.0.0.1:11211" )
 
storage can be distributed
across multiple 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 and that the
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
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control default value
for MediaWiki still create a
but requests to it are no ops
and we always fall through to
the database If the cache
daemon can t be it should also
disable itself fairly smoothly
By $wgMemc is used but when it
is $parserMemc or $messageMemc
this is mentioned 
below
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control default value
for MediaWiki still create a
but requests to it are no ops
and we always fall through to
the database If the cache
daemon can t be 
contacted
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like
it should help lighten the
load on the database servers
by caching data and objects in 
Debian
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control default value
for MediaWiki still create a
but requests to it are no ops
and we always fall through to
the database If the cache
daemon can t be it should also
disable itself fairly smoothly
By 
default
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like
it should help lighten the
load on the database servers
by caching data and objects in
Ubuntu and probably other
Linux distributions If there s
no package available for your 
distribution
 
storage can be distributed
across multiple 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
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on 
it
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like
it should help lighten the
load on the database servers
by caching data and objects in
Ubuntu and probably other
Linux distributions If there s
no package available for your
you can compile it from epoll
rt patch for Linux 
kernel
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy 
load
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control default value
for MediaWiki still create
MemCacheClient
 
MediaWiki has optional support for memcached
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like
it should help lighten the
load on the database servers
by caching data and objects in 
memory
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like
it should help lighten the
load on the database servers
by caching data and objects in
Ubuntu and probably other
Linux distributions If there s
no package available for your
you can compile it from epoll
rt patch for Linux is current
Memcached and libevent are
under BSD style licenses The
server should run on Linux and
other Unix like systems you
can run multiple servers on
one machine or on multiple
machines on
network
 
MediaWiki has optional support
for a high 
performance
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on 
see
 
storage can be distributed
across multiple 
servers
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like
it should help lighten the
load on the database servers
by caching data and objects in
Ubuntu and probably other
Linux distributions If there s
no package available for your
you can compile it from 
source
 
The wiki should then use
memcached to cache various
data To use multiple just add
more items to the array To
increase the weight of a make
its entry a 
subarray
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control 
variable
 
storage can be distributed
across multiple 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 and that the
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 or
to make themselves a sysop and
install malicious javascript
on the site There may be other
types of 
vulnerability
 
controlled by $wgMainCacheType
controlled by
$wgParserCacheType controlled
by $wgMessageCacheType If you
set CACHE_NONE to one of the
three control default value
for MediaWiki still create a
but requests to it are no ops
and we always fall through to
the database If the cache
daemon can t be it should also
disable itself fairly smoothly
By $wgMemc is used but when it
is $parserMemc or $messageMemc
this is mentioned 
wikidb
 
MediaWiki has optional support
for a high distributed memory
object caching system For
general information on but for
a larger site with heavy like 
Wikipedia
 

Typedef Documentation

controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for $wgMainCacheType

Definition at line 63 of file memcached.txt.

Function Documentation

The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array ( "192.168.0.1:11211"  ,
 
)
storage can be distributed across multiple 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 and that the port ( )
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a server ( say  ,
because it has twice the memory of the others and you want to spread usage  evenly 
)
The wiki should then use memcached to cache various data To use multiple servers ( physically separate boxes or multiple caches on one machine on a large-memory x86  box)

Variable Documentation

controlled by $wgMainCacheType controlled by $wgParserCacheType* $messageMemc

Definition at line 78 of file memcached.txt.

controlled by $wgMainCacheType* $parserMemc
controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for MediaWiki still create a but requests to it are no ops and we always fall through to the database If the cache daemon can t be it should also disable itself fairly smoothly By $wgMemc is used but when it is $parserMemc or $messageMemc this is mentioned $wgDBname
$wgMemCachedServers = array( "127.0.0.1:11211" )

Definition at line 64 of file memcached.txt.

Referenced by McTest::execute().

storage can be distributed across multiple 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 and that the 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

Definition at line 43 of file memcached.txt.

controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for MediaWiki still create a but requests to it are no ops and we always fall through to the database If the cache daemon can t be it should also disable itself fairly smoothly By $wgMemc is used but when it is $parserMemc or $messageMemc this is mentioned below

Definition at line 96 of file memcached.txt.

Referenced by Linker::normalizeSubpageLink(), and DifferenceEngine::showDiffPage().

controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for MediaWiki still create a but requests to it are no ops and we always fall through to the database If the cache daemon can t be contacted

Definition at line 78 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like it should help lighten the load on the database servers by caching data and objects in Debian

Definition at line 10 of file memcached.txt.

Referenced by PhpHttpRequest::getCertOptions().

controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for MediaWiki still create a but requests to it are no ops and we always fall through to the database If the cache daemon can t be it should also disable itself fairly smoothly By default

Definition at line 78 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like it should help lighten the load on the database servers by caching data and objects in Ubuntu and probably other Linux distributions If there s no package available for your distribution

Definition at line 10 of file memcached.txt.

storage can be distributed across multiple 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

Definition at line 33 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on it

Definition at line 1 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like it should help lighten the load on the database servers by caching data and objects in Ubuntu and probably other Linux distributions If there s no package available for your you can compile it from epoll rt patch for Linux kernel

Definition at line 16 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy load
controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for MediaWiki still create a MemCacheClient

Definition at line 78 of file memcached.txt.

MediaWiki has optional support for memcached

Definition at line 1 of file memcached.txt.

Referenced by mccShowUsage().

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like it should help lighten the load on the database servers by caching data and objects in memory
Initial value:
== Installation ==
Packages are available for Fedora
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types are

Definition at line 10 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like it should help lighten the load on the database servers by caching data and objects in Ubuntu and probably other Linux distributions If there s no package available for your you can compile it from epoll rt patch for Linux is current Memcached and libevent are under BSD style licenses The server should run on Linux and other Unix like systems you can run multiple servers on one machine or on multiple machines on a network

Definition at line 16 of file memcached.txt.

Referenced by PoolCounterRedis::initAndPopPoolSlotList().

MediaWiki has optional support for a high performance

Definition at line 1 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on see

Definition at line 1 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like it should help lighten the load on the database servers by caching data and objects in Ubuntu and probably other Linux distributions If there s no package available for your you can compile it from source
Initial value:
== Compilation ==
* PHP must be compiled with --enable-sockets
* libevent: http:
(as of 2003-08-11, 0.7a is current)
* optionally
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by etc *css user provided css code *text plain text In PHP
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
database rows
Definition: globals.txt:10
Apache License January http
Some quick notes on the file repository architecture Functionality is
Definition: README:3
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9

Definition at line 16 of file memcached.txt.

The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a subarray

Definition at line 74 of file memcached.txt.

controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control variable

Definition at line 78 of file memcached.txt.

storage can be distributed across multiple 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 and that the 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 or to make themselves a sysop and install malicious javascript on the site There may be other types of vulnerability

Definition at line 43 of file memcached.txt.

controlled by $wgMainCacheType controlled by $wgParserCacheType controlled by $wgMessageCacheType If you set CACHE_NONE to one of the three control default value for MediaWiki still create a but requests to it are no ops and we always fall through to the database If the cache daemon can t be it should also disable itself fairly smoothly By $wgMemc is used but when it is $parserMemc or $messageMemc this is mentioned wikidb

Definition at line 96 of file memcached.txt.

MediaWiki has optional support for a high distributed memory object caching system For general information on but for a larger site with heavy like Wikipedia

Definition at line 1 of file memcached.txt.