Podręcznik:$wgMemc

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgMemc and the translation is 29% complete.
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 Podręcznik:GlobalFunctions.php as follows:

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

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

Zobacz też