Jump to content

Manual:$wgParserCacheFilterConfig/pl

From mediawiki.org
This page is a translated version of the page Manual:$wgParserCacheFilterConfig and the translation is 7% complete.
Cache: $wgParserCacheFilterConfig
Per-namespace configuration for the ParserCache filter.
Wprowadzono w wersji:1.42.0 (Gerrit change 961832; git #e3fb9644)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(array)
Domyślna wartość: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

Wersja MediaWiki:
1.46
$wgParserCacheFilterConfig = [
	'pcache' => [ // old parser cache
		'default' => [ // all namespaces
			// 0 means no threshold.
			// Use PHP_INT_MAX to disable cache.
			'minCpuTime' => 0
		],
	],
	'postproc-pcache' => [ // postprocessing output cache
		'default' => [ // all namespaces
			// 0 means no threshold.
			// Use PHP_INT_MAX to disable cache.
			'minCpuTime' => PHP_INT_MAX
		],
	],
	'parsoid-pcache' => [ // parsoid output cache
		'default' => [ // all namespaces
			// 0 means no threshold.
			// Use PHP_INT_MAX to disable cache.
			'minCpuTime' => 0
		],
	],
	'postproc-parsoid-pcache' => [ // parsoid postprocessing output cache
		'default' => [ // all namespaces
			// 0 means no threshold.
			// Use PHP_INT_MAX to disable cache.
			'minCpuTime' => 0
		],
	],
];
Wersje MediaWiki:
1.42 – 1.45
$wgParserCacheFilterConfig = [
	'pcache' => [ // old parser cache
		'default' => [ // all namespaces
			// 0 means no threshold.
			// Use PHP_INT_MAX to disable cache.
			'minCpuTime' => 0
		],
	],
	'parsoid-pcache' => [ // parsoid output cache
		'default' => [ // all namespaces
			// 0 means no threshold.
			// Use PHP_INT_MAX to disable cache.
			'minCpuTime' => 0
		],
	],
];