$smwg­Factbox­Use­Cache

From Linux Web Expert

Revision as of 11:54, 16 March 2019 by >Kghbln (chg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgFactboxUseCache
Description Sets whether or not a factbox content should be stored in cache.
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 · performance


__NOBREADCRUMBLINKS__

$smwgFactboxUseCache is a configuration parameter that sets whether or not a factbox content should be stored in cache. 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_CACHE to configuration parameter $smwgFactboxFeaturesSets 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 $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

$smwgFactboxUseCache = true;

This means that the data shown in the factbox are cached. This will considerable improve page response time as non-changed page content will not cause re-parsing of factbox content and instead is served directly from cache while only a new revision will trigger to re-parse the factbox.

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 caching of data displayed in the factbox
$smwgFactboxUseCache = false;

This means the data shown in the factbox are not being cached.

This setting equals the legacy behaviour of Semantic MediaWiki 1.8.0Released on an unknown date unknown versions of MediaWiki and earlier, then every page request will bind the factbox to be re-parsed.

See also

References

  1. a b gh:smw:3474