Manual:$wgInterwikiCache

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
English • ‎français • ‎日本語 • ‎polski
Interwiki: $wgInterwikiCache
Set to an associative array or file path to a CDB file for interwiki cacheinterwiki cache.
Introduced in version: 1.6.0 (r12805)
Removed in version: still in use
Allowed values: array, string or false
Default value: false
Other settings: Alphabetical | By function

Details[edit]

Interwiki caching consists of the following four settings:

$wgInterwikiCacheManual:$wgInterwikiCache
This setting specifies an array in the following format, or a string with the path to CDBCDB file containing the same keys. This format can be generated with dumpInterwiki.phpManual:dumpInterwiki.php.
  • dbname:key - a simple key (e.g. enwiki:meta)
  • _sitename:key - site-scope key (e.g. wiktionary:meta)
  • __global:key - global-scope key (e.g. __global:meta)
  • __sites:dbname - site mapping (e.g. __sites:enwiki)
Sites mapping just specifies site name, other keys provide "local url" data layout.
$wgInterwikiScopesManual:$wgInterwikiScopes 
This setting specifies the number of domains to check for messages:
  1. - Just wiki(db)-level
  2. - wiki and global levels
  3. - site levels
$wgInterwikiFallbackSiteManual:$wgInterwikiFallbackSite 
This setting is used if unable to resolve from the cache.

Since 1.19MediaWiki 1.19 it is possible to get the list of cached interwiki prefixes, used in the API and Extension:InterwikiExtension:Interwiki extension.

See also[edit]