Manual:$wgMemc

From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎polski • ‎中文 • ‎日本語

$wgMemc is the global variable used to access the main cache. It is set in Setup.php :

$wgMemc = ObjectCache::getLocalClusterInstance();

Past global function wfGetMainCache() defined in Manual:GlobalFunctions.php as follows:

function wfGetMainCache() {
	return ObjectCache::getLocalClusterInstance();
}

For documentation of the generic class instance it contains, see BagOStuff.

See also[edit]