Manual:$wgAntiLockFlags

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgAntiLockFlags and the translation is 42% complete.

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
その他の設定: $wgAntiLockFlags
Anti-lock flags.
導入されたバージョン: 1.4.0
除去されたバージョン: 1.25.0 (Gerrit #Ia709cc; git #12757b50)
可能な値: ビットフィールド - 下記参照
既定値: 0
他の設定: アルファベット順 | 機能順

詳細[edit]

Anti-lock flags. This is a bitfield. The constants are set in Defines.php.

ALF_PRELOAD_LINKS 
Preload links during link update for save. (This option has no effect since 1.6.0)
ALF_PRELOAD_EXISTENCE 
Preload cur_id during replaceLinkHolders. (This option has no effect since 1.5.0)
ALF_NO_LINK_LOCK 
Don't use locking reads when updating the link table. This is necessary for wikis with a high edit rate for performance reasons, but may cause link table inconsistency. (This option was introduced in 1.5.0)
ALF_NO_BLOCK_LOCK 
As for ALF_LINK_LOCK, this flag is a necessity for high-traffic wikis. (This option was introduced in 1.5.0 and has no effect since 1.18.0)

[edit]

To reduce lock contention, at the expense of introducing occasional inconsistencies, set:

$wgAntiLockFlags = ALF_NO_LINK_LOCK | ALF_NO_BLOCK_LOCK;