$smwgAutoRefreshOnPurge

From Linux Web Expert

Revision as of 11:19, 9 January 2020 by >Kghbln (moar tweaks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgAutoRefreshOnPurge
Description Sets whether semantic data are refreshed in the store when a page is manually purged
File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate>Requires parameter $smwgCacheType be set; otherwise purging will have no effect.
Default setting true
(Other) available settings
false

Allows to disable refreshing data when a page is manually purged

Software Semantic MediaWiki
Since version
Until version still available
Configuration Cache
Keyword cache · object cache · auto refresh


__NOBREADCRUMBLINKS__

$smwgAutoRefreshOnPurge is a configuration parameter that sets whether or not to refresh semantic data in the store when a page is manually purged. The configuration parameter was introduced in Semantic MediaWiki 1.9.0Released on an unknown date unknown versions of MediaWiki.

This configuration parameter requires configuration parameter $smwgCacheTypeSets which object cache Semantic MediaWiki should use to track temporary changes be set to something else than CACHE_NONE otherwise purging will have no effect.

Default setting

$smwgAutoRefreshOnPurge = true;

This means that the semantic data in the data store will be refreshed when a page is manually purged.

Changing the default setting

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Enable the usage of compact links
$smwgAutoRefreshOnPurge = false;

This means that the semantic data in the data store will not be refreshed when a page is manually purged.

See also