Manual:$wgParsoidCacheConfig

Cache: $wgParsoidCacheConfig
Configuration for the caching related to parsoid output. The configuration contains the following keys:
Introduced in version:1.39.0 (Gerrit change 802584; git #4dd7bd16)
Removed in version:still in use
Allowed values:(array)
Default value:see below
Warning Warning: Per MediaWiki 1.39, the structure of this configuration is still subject to change.

Details edit

Configuration for the caching related to parsoid output. The configuration contains the following keys:

  • StashType - The type of object store to be used by the ParsoidOutputStash service, which stores the base state of HTML based edits. Valid options are the keys of {@link $wgObjectCaches}, e.g. CACHE_* constants. Per default, the value of the MainStash setting will be used. This should be an object store that provides fairly solid persistence guarantees, since losing an entry from the stash may mean that the user can't save their edit. If null, the value of the MainStash configuration setting will be used.
  • StashDuration - The number of seconds for which an entry in the stash should be kept. Should be long enough for users to finish editing, since losing an entry from the stash may mean that the user can't save their edit. This is set to one day per default.
  • CacheThresholdTime - If parsing is completed before this time (in seconds), assume it's a small page that is fast for parsing and does not need caching. Setting this to zero causes all outputs to be cached.
  • WarmParsoidParserCache - Setting this to true will pre-populate the parsoid parser cache with parsoid outputs on page edits, and also on page views (since MediaWiki 1.40, task T327164). This speeds up loading HTML into Visual Editor.

Default value edit

MediaWiki version:
1.42
[
	'StashType' => null,
	'StashDuration' => 86400,
	'WarmParsoidParserCache' => false,
];
MediaWiki versions:
1.39 – 1.41
[
	'StashType' => null,
	'StashDuration' => 24 * 60 * 60,
	'CacheThresholdTime' => 0.0,
	'WarmParsoidParserCache' => false,
]