Manual:$wgParserCacheFilterConfig/pl

From Linux Web Expert

Revision as of 14:39, 2 February 2024 by imported>Chrumps (Created page with "patrz poniżej")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Cache</translate>: $wgParserCacheFilterConfig
Per-namespace configuration for the ParserCache filter.
<translate> Introduced in version:</translate>1.42.0 (Gerrit change 961832; git #e3fb9644)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>patrz poniżej

Details

Per-namespace configuration for the ParserCache filter. There is one top level key for each cache name supported in ParserCacheFactory. The per-namespace configuration is given separately for each cache. For each namespace, this defines a set of filter options, which are represented as an associative array. The following keys are supported in this array:

  • minCpuTime - causes the parser cache to not save any output that took fewer than the given number of seconds of CPU time to generate, according to ParserOutput::getTimeProfile(). Set to 0 to always cache, or to PHP_INT_MAX to disable caching for this namespace.

If no filter options are defined for a given namespace, the filter options

Default value

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.42
<translate> MediaWiki version:</translate>
[
	'pcache' => [
		'default' => [
			'minCpuTime' => 0,
		],
	],
	'parsoid-pcache' => [
		'default' => [
			'minCpuTime' => 0,
		],
	],
]