$smwgQueryResultCacheRefreshOnPurge

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgQueryResultCacheRefreshOnPurge
Description Sets whether it is possible to manually refresh the query cache by doing a "purge" action
Default setting
true
(Other) available settings
false

Allows to disable the purging of the results cache

Software Semantic MediaWiki
Since version
Until version still available
Configuration Cache
Keyword caching · object cache · performance · query performance · query result cache · experimental


$smwgQueryResultCacheRefreshOnPurge is a configuration parameter that sets whether it is possible to manually refresh the query cache by doing a "purge" action (&action=purge). It was introduced in Semantic MediaWiki 2.5.0.1

This configuration parameter only takes effect if the query results cache was enabled.

Default setting[edit]

$smwgQueryResultCacheRefreshOnPurge = true;

This means that by default purging the query cache is allowed.

Changing the default setting[edit]

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

Disable manual purging of the cache
$smwgQueryResultCacheRefreshOnPurge = false;

This means that purging the query cache is not allowed. The wiki will then retain the cache of embedded queries and their results fetched from the query engine.

See also[edit]

Query result caching
Embedded query updates

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:1251