Help:$smwgCacheUsage

From semantic-mediawiki.org
Jump to: navigation, search
Title $smwgCacheUsage
Description Controls the caching behaviour or special pages related to Semantic MediaWiki. Requires $smwgCacheType be set; otherwise caching will have no effect.
Default setting array( … );
Software Semantic MediaWiki
Introduced with 1.9.0
Deprecated with still available
Configuration Cache
Keyword Cache · Object cache · Special page
Referenced by N/A

$smwgCacheUsage is a configuration parameter that is used to control the caching behaviour of special pages related to Semantic MediaWiki. The setting was introduced in 1.9.0.

Default Setting

$GLOBALS['smwgCacheUsage'] = array(
   'smwgWantedPropertiesCache' => true,
   'smwgWantedPropertiesCacheExpiry' => 3600,
   'smwgUnusedPropertiesCache' => true,
   'smwgUnusedPropertiesCacheExpiry' => 3600,
   'smwgPropertiesCache' => true,
   'smwgPropertiesCacheExpiry' => 3600,
   'smwgStatisticsCache' => true,
   'smwgStatisticsCacheExpiry' => 3600,
);

Available Options

Options related to Special:WantedProperties
  • smwgWantedPropertiesCache - Enable to serve wanted properties from cache
  • smwgWantedPropertiesCacheExpiry - Number of seconds before the cache expires
Options related to Special:UnusedProperties
  • smwgUnusedPropertiesCache - Enable to serve unused properties from cache
  • smwgUnusedPropertiesCacheExpiry - Number of seconds before the cache expires
Options related to Special:Properties
  • smwgPropertiesCache - Enable to serve properties from cache
  • smwgPropertiesCacheExpiry - Number of seconds before the cache expires
Options related to Special:SemanticStatistics
  • smwgStatisticsCache - Enable to serve statistics from cache
  • smwgStatisticsCacheExpiry - Number of seconds before the cache expires