Manual:$wgMemc
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.36.0</tvar>.</translate> |
<translate> [[<tvar|1>Special:MyLanguage/Manual:Global object variables</>|Global object]]:</translate> $wgMemc | |
---|---|
The global variable used to access the main cache. | |
<translate> Deprecated in:</translate> | 1.35.0 |
<translate> Removed in:</translate> | 1.36.0 |
<translate> Class:</translate> | ObjectCache |
<translate> Located in:</translate> | ObjectCache.php |
$wgMemc is the global variable used to access the main cache. It is set in Setup.php :
$wgMemc = ObjectCache::getLocalClusterInstance();
wfGetMainCache()
<translate> (deprecated in <tvar name=2>1.32</tvar>)</translate>
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.