Manual:$wgInterwikiCache/zh

Category:MediaWiki configuration settings/zh#InterwikiCacheCategory:MediaWiki configuration settings introduced in version 1.6.0/zh#InterwikiCacheCategory:MediaWiki configuration settings still in use/zh#InterwikiCacheCategory:Interwiki cache variables/zh#InterwikiCache
跨wiki缓存: $wgInterwikiCache
Interwiki cache as an associative array.
引进版本:1.6.0 (r12805)
移除版本:仍在使用
允许的值:(array) or false
false

详情

Interwiki caching consists of the following three settings:

$wgInterwikiCache
This setting specifies an array in the following format. This format can be generated with 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.
$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
$wgInterwikiFallbackSite
This setting is used if unable to resolve from the cache.

Since 1.19 it is possible to get the list of cached interwiki prefixes, used in the API and :跨維基 extension.

See also

Category:Interwiki cache variables/zh Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.6.0/zh Category:MediaWiki configuration settings still in use/zh