Manual:$wgMemc/ru

Category:Global object variables/ru#Memc Category:MediaWiki deprecated or obsolete features/ru#Memc
Внимание Внимание: It is recommended you use the WANObjectCache service. However, if you really need the internal object, use ObjectCache::getLocalClusterInstance instead.

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

$wgMemc = ObjectCache::getLocalClusterInstance();

wfGetMainCache()

(устарело в 1.32)

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.

См. также

Category:Global object variables/ru Category:MediaWiki deprecated or obsolete features/ru