v3.0.0+
Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
$smwgFactboxCacheRefreshOnPurge
From Linux Web Expert
Template:Interlanguagelink: en
Configuration parameter details: | |
Name | $smwgFactboxCacheRefreshOnPurge |
Description | Sets whether or not a cached factbox should be invalidated on an "action=purge" event. File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate>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 |
__NOBREADCRUMBLINKS__
$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 an unknown date unknown versions of MediaWiki and deprecated in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.1
This configuration parameter was deprecated with Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki in favour of option
SMW_FACTBOX_PURGE_REFRESH
to configuration parameter $smwgFactboxFeatures
Sets the behaviour of features related to the factbox streamlining the overall configuration of Semantic MediaWiki.1 Thus you are advised to migrate your settings in "LocalSettings.php" to the new configuration parameter since this one will be removed with the release of Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki in 2019.
This configuration parameter requires configuration parameter
$smwgCacheType
Sets 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
$smwgFactboxCacheRefreshOnPurge = true;
This means that each purge request (no new page revision) will invalidate the factbox cache.
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:
- 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
- Help page on the factbox
- Help page on configuration parameter
$smwgFactboxFeatures
Sets the behaviour of features related to the factbox - Help page on configuration parameter
$smwgShowFactbox
Sets in which cases the factbox should be shown below a page - Help page on configuration parameter
$smwgShowFactboxEdit
Sets in which cases the factbox should be shown when editing a page