Jump to navigation Jump to search
Available from version 1.24.0 (Gerrit change 158146)
Called for each language when merging fallback data into the cache.
Define function:
public static function onLocalisationCacheRecacheFallback( $cache, $code, &$alldata ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"LocalisationCacheRecacheFallback": "MyExtensionHooks::onLocalisationCacheRecacheFallback"

For MediaWiki ≤1.25:

$wgHooks['LocalisationCacheRecacheFallback'][] = 'MyExtensionHooks::onLocalisationCacheRecacheFallback';
Called from:File(s): cache/localisation/LocalisationCache.php
Function(s): recache

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:LocalisationCacheRecacheFallback extensions.


  • $cache: The LocalisationCache object
  • $code: language code
  • &$alldata: The localisation data from core and extensions. Note some keys may be omitted if they won't be merged into the final result.