Podręcznik:$wgMemc
Appearance
Ta funkcja została całkowicie usunięta z jądra MediaWiki w wersji 1.36.0. |
| Obiekt globalny: $wgMemc | |
|---|---|
| The global variable used to access the main cache. | |
| Zdeprecjonowany w: | 1.35.0 |
| Usunięty w: | 1.36.0 |
| Klasa: | ObjectCache |
| Zlokalizowany w: | ObjectCache.php |
$wgMemc is the global variable used to access the main cache. It is set in Setup.php:
$wgMemc = ObjectCache::getLocalClusterInstance();
wfGetMainCache()
(przestarzałe od 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.