$smwg­Factbox­Cache­Refresh­On­Purge

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgFactboxCacheRefreshOnPurge
Description Sets whether or not a cached factbox should be invalidated on an "action=purge" event.
NoteNote: Requires $smwgCacheType be set; otherwise caching will have no effect.
Default setting
true
Software Semantic MediaWiki
Since version
Until version still available
Configuration Cache
Keyword cache · object cache · factbox · auto refresh


$smwgFactboxCacheRefreshOnPurge is a configuration parameter that sets whether or not a factbox should be invalidated on an action=purge event. The configuration parameter was introduced in Semantic MediaWiki 1.9.0Released on 3 January 2014 and compatible with MW 1.19.0 - 1.22.x. and deprecated in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..1

No longer functional as of Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x.. The runtime shim that automatically translated $smwgFactboxCacheRefreshOnPurge to its replacement has been removed, so this setting is now silently ignored. Migrate to configuration parameter $smwgFactboxFeaturesSets the behaviour of features related to the factbox (option 'purge-refresh') in "LocalSettings.php".2
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 caching will have no effect.

Default setting[edit]

$smwgFactboxCacheRefreshOnPurge = true;

This means that each purge request (no new page revision) will invalidate the factbox cache.

Changing the default setting[edit]

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

Disable the refreshing of data when purging a page
$smwgFactboxCacheRefreshOnPurge = false;

This means the factbox cache will be only reset after a new page revision.

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:3474
  2. ^  | | | | | | | | |  Semantic MediaWiki: GitHub pull request gh:smw:6706