MediaWiki REL1_30
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 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)
 

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 a 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 a 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

◆ $wgMainCacheType

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

Definition at line 63 of file memcached.txt.

Function Documentation

◆ array()

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  )

◆ port()

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 )

◆ server()

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 )

◆ servers()

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

◆ $messageMemc

controlled by $wgMainCacheType controlled by $wgParserCacheType* $messageMemc

Definition at line 86 of file memcached.txt.

◆ $parserMemc

controlled by $wgMainCacheType* $parserMemc

Definition at line 85 of file memcached.txt.

Referenced by UploadFromUrlTestSuite::setUp().

◆ $wgDBname

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

$wgMemCachedServers = array( "127.0.0.1:11211" )

Definition at line 64 of file memcached.txt.

Referenced by McTest::execute().

◆ addresses

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.

◆ 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 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 94 of file memcached.txt.

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

◆ contacted

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 90 of file memcached.txt.

◆ Debian

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 12 of file memcached.txt.

Referenced by PhpHttpRequest::getCertOptions().

◆ default

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 93 of file memcached.txt.

◆ distribution

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 14 of file memcached.txt.

◆ firewalled

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 38 of file memcached.txt.

◆ it

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

Definition at line 3 of file memcached.txt.

◆ kernel

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 23 of file memcached.txt.

◆ load

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

Definition at line 6 of file memcached.txt.

Referenced by SiteStats::activeUsers(), User::addGroup(), User::addToDatabase(), SiteStats::articles(), User::checkAndSetTouched(), User::confirmationToken(), SiteStats::edits(), SpecialSearch::execute(), LoginSignupSpecialPage::execute(), LocalFile::exists(), MediaWiki\Interwiki\ClassicInterwikiLookup::fetch(), MessageCache::getAllMessageKeys(), OldLocalFile::getArchiveName(), LocalFile::getBitDepth(), User::getBlockedStatus(), User::getDBTouched(), LocalFile::getDescription(), User::getEmail(), User::getEmailAuthenticationTimestamp(), User::getFormerGroups(), User::getGroupMemberships(), User::getGroups(), LocalFile::getHeight(), User::getId(), LocalFile::getMediaType(), LocalFile::getMetadata(), LocalFile::getMimeType(), MessageCache::getMsgFromNamespace(), User::getName(), User::getNewtalk(), User::getRealName(), User::getRegistration(), LocalFile::getSha1(), LocalFile::getSize(), LocalFile::getTimestamp(), User::getToken(), User::getTouched(), LocalFile::getUser(), OldLocalFile::getVisibility(), LocalFile::getWidth(), SiteStats::images(), User::invalidateEmail(), LocalFile::isCacheable(), OldLocalFile::isDeleted(), User::isEmailConfirmed(), MessageCache::loadFromDB(), User::loadOptions(), SiteStats::pages(), SiteStats::recache(), User::removeGroup(), User::resetOptions(), User::saveSettings(), User::setCookies(), User::setEmail(), User::setEmailAuthenticationTimestamp(), User::setName(), User::setNewtalk(), User::setRealName(), User::setToken(), User::spreadBlock(), OldLocalFile::userCan(), and SiteStats::users().

◆ MemCacheClient

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 88 of file memcached.txt.

◆ memcached

MediaWiki has optional support for memcached

Definition at line 1 of file memcached.txt.

◆ 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 memory
Initial value:
== Installation ==
Packages are available for Fedora

Definition at line 8 of file memcached.txt.

◆ network

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 33 of file memcached.txt.

Referenced by PoolCounterRedis::initAndPopPoolSlotList().

◆ performance

MediaWiki has optional support for a high performance

Definition at line 1 of file memcached.txt.

◆ see

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

Definition at line 3 of file memcached.txt.

◆ servers

◆ source

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
Apache License January http
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

Definition at line 14 of file memcached.txt.

◆ subarray

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 71 of file memcached.txt.

◆ variable

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

Definition at line 87 of file memcached.txt.

◆ vulnerability

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 45 of file memcached.txt.

◆ wikidb

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 139 of file memcached.txt.

◆ Wikipedia

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 6 of file memcached.txt.

Referenced by PopulateInterwiki::__construct().