MediaWiki
REL1_20
|
A localisation cache optimised for loading large amounts of data for many languages. More...
Public Member Functions | |
getItem ($code, $key) | |
getSubitem ($code, $key, $subkey) | |
recache ($code) | |
unload ($code) | |
Public Attributes | |
$fileCache = array() | |
A cache of the contents of data files. | |
$maxLoadedLangs = 10 | |
Maximum number of languages that may be loaded into $this->data. | |
$mruLangs = array() | |
Most recently used languages. | |
Protected Member Functions | |
readPHPFile ($fileName, $fileType) | |
trimCache () | |
Unload cached languages until there are less than $this->maxLoadedLangs. |
A localisation cache optimised for loading large amounts of data for many languages.
Used by rebuildLocalisationCache.php.
Definition at line 1181 of file LocalisationCache.php.
LocalisationCache_BulkLoad::getItem | ( | $ | code, |
$ | key | ||
) |
$code | |
$key |
Reimplemented from LocalisationCache.
Definition at line 1231 of file LocalisationCache.php.
LocalisationCache_BulkLoad::getSubitem | ( | $ | code, |
$ | key, | ||
$ | subkey | ||
) |
$code | |
$key | |
$subkey |
Reimplemented from LocalisationCache.
Definition at line 1243 of file LocalisationCache.php.
LocalisationCache_BulkLoad::readPHPFile | ( | $ | fileName, |
$ | fileType | ||
) | [protected] |
$fileName | |
$fileType |
Reimplemented from LocalisationCache.
Definition at line 1205 of file LocalisationCache.php.
LocalisationCache_BulkLoad::recache | ( | $ | code | ) |
$code |
Reimplemented from LocalisationCache.
Definition at line 1252 of file LocalisationCache.php.
LocalisationCache_BulkLoad::trimCache | ( | ) | [protected] |
Unload cached languages until there are less than $this->maxLoadedLangs.
Definition at line 1270 of file LocalisationCache.php.
LocalisationCache_BulkLoad::unload | ( | $ | code | ) |
$code |
Reimplemented from LocalisationCache.
Definition at line 1262 of file LocalisationCache.php.
LocalisationCache_BulkLoad::$fileCache = array() |
A cache of the contents of data files.
Core files are serialized to avoid using ~1GB of RAM during a recache.
Definition at line 1186 of file LocalisationCache.php.
LocalisationCache_BulkLoad::$maxLoadedLangs = 10 |
Maximum number of languages that may be loaded into $this->data.
Definition at line 1198 of file LocalisationCache.php.
LocalisationCache_BulkLoad::$mruLangs = array() |
Most recently used languages.
Uses the linked-list aspect of PHP hashtables to keep the most recently used language codes at the end of the array, and the language codes that are ready to be deleted at the beginning.
Definition at line 1193 of file LocalisationCache.php.