Manual:$wgMiserMode

This page is a translated version of the page Manual:$wgMiserMode and the translation is 52% complete.
パフォーマンス ハックと制限: $wgMiserMode
データベース依存度の高い機能の有効・無効の切り替え
導入されたバージョン:pre 1.1.0
除去されたバージョン:使用中
許容される値:(真偽値)
既定値:false

Miser mode is a mode intended to reduce load on server farms running a large number of wikis. It is enabled on all WMF wikis.

詳細

true の場合、データベース依存機能を無効にすると、必要に応じて個別に整備・管理ができるようにします。 これには、リクエストがあるたびにページを再生成するのではなく、キャッシュの読み取りにより高価 (リソースを消費する) とマークされた特別ページを閲覧することが含まれます。

$wgMiserModetrue に設定すると、このフラグを付けて管理する特別ページは明示的に更新を強制されたとき以外は更新されなくなります。 例えば cron作業により/maintenance/updateSpecialPages.php の呼び出しにもしくはExtension:RefreshSpecial を使用します。

その他の無効にされた機能とは……

  • MediaWiki:Rc-change-size (r48986) により最近の更新のサイズ変更のカスタム書式を無効にします
  • すべての公開記録にあるx ボックスで始まる全ページ選択 (ならびにlist=logevents APIモジュールのleprefixオプション) を無効にします
  • Mimeタイプ検索のほかlist=allimagesならびにlist=filearchive APIモジュールにおけるaimimeおよびfamimeオプションを完全に無効化
  • 利用者の投稿記録について、RSSフィードのshowsizediffオプションを無効化
  • APIモジュールのlist=categorymembersおよびlist=externallinksについて、名前空間モードごとの制限ソートを使用 (cmnamespaceもしくはelnamespaceオプションを使用中に返す検出結果を制限)。
  • Do not show how many previous versions of an image were uploaded on Special:ListFiles
  • When running updateCollation.php maintenance script, will not tell you how many rows in total there are to update.
MediaWiki バージョン:
1.23
Gerrit change 109710
MediaWiki バージョン:
1.33 – 1.34
Gerrit change 294774

It is substituted by a single dash after saving the page.

MediaWiki バージョン:
1.35
Gerrit change 570985
  • Disables the {{REVISIONID}} magic word in subject namespaces as of gerrit:570985.

It is substituted by a single dash after saving the page.

For reference, this very wiki uses miser mode. You can tell if a wiki has miser mode enabled via the meta=siteinfo API module.

update.php

MediaWiki バージョン:
1.18

This configuration option disables update.php in 1.18.0 (and only 1.18.0. Subsequent releases will not use this option for that purpose), requiring one to use --force to run that script. Very very very large wikis (like Wikipedia) may need to have more careful upgrade process than the maintenance script does, but most sites would not have to worry about this.


関連項目