Manual:$wgExpensiveParserFunctionLimit/ja
From Linux Web Expert
<translate> Parser</translate>: $wgExpensiveParserFunctionLimit | |
---|---|
PAGESINCATEGORY のような時間のかかるパーサー関数での構文解析ごとの呼び出し回数の最大値。 |
|
<translate> Introduced in version:</translate> | 1.13.0 (r32932) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (整数) |
<translate> Default value:</translate> | 100 |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
詳細
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 ソースで確認できます。