Podręcznik:$wgMemc
Jump to navigation
Jump to search
$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();
}
![]() | Ta przestarzała funkcja nie powinna być już dłużej używana, ale jest nadal dostępna ze względu na wsteczną kompatybilność. Ta funkcja została zdeprecjonowana w wersji 1.32. |
For documentation of the generic class instance it contains, see BagOStuff.