Manual:$wgExpensiveParserFunctionLimit
構文解析: $wgExpensiveParserFunctionLimit | |
---|---|
PAGESINCATEGORY のような時間のかかるパーサー関数での構文解析ごとの呼び出し回数の最大値。 |
|
導入されたバージョン: | 1.13.0 (r32932) |
除去されたバージョン: | 使用中 |
許容される値: | (整数) |
既定値: | 100 |
その他の設定: アルファベット順 | 機能順 |
詳細
PAGESINCATEGORY のような時間のかかるパーサー関数での構文解析ごとの呼び出し回数の最大値です。 Expensive parser functions include:
- {{#ifexist:}} (Extension:ParserFunctions の一部)
- {{PAGESINCATEGORY}}/{{PAGESINCAT}} (マジック ワード)
- {{PAGESIZE}} (マジック ワード)
- {{REVISIONUSER}} and {{REVISIONTIMESTAMP}} when used with the optional argument to specify a different page
- {{CASCADINGSOURCES}} (マジック ワード)
- Some Lua MediaWiki-related functions (see Lua reference manual), including
mw.incrementExpensiveFunctionCount()
which can be used to manually mark a Lua code path as expensive.
<syntaxhighlight>
(1.39 以降)- Search for
Parser::incrementExpensiveFunctionCount()
calls to find more wikitext features that are considered expensive.
A limit report for the current page can be found as a comment in the HTML source of the page. ウィキテキストを保存する前でも、そのウィキテキストのプレビュー ページの HTML ソースで確認できます。