Status: | obsolete |
Progress: | 100% |
Version: | 2.3.0 - 3.0.2 |
$smwgValueLookupCacheLifetime
Configuration parameter details: | |
Name | $smwgValueLookupCacheLifetime |
Description | Property "Has description" (as page type) with input value "Sets the cache lifetime of the value lookup cache until it is being invalidated" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. |
Default setting | 60 * 60 * 24 * 7 |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Cache |
Keyword | caching · object cache · performance · query performance · query lookup cache · query lookup · experimental |
__NOBREADCRUMBLINKS__
$smwgValueLookupCacheLifetime
is a configuration parameter that sets the cache lifetime of the value lookup cache ("smwgValueLookupCacheType") until it is being invalidated in case this has not happened earlier. It was introduced in Semantic MediaWiki 2.3.0Released on an unknown date unknown versions of MediaWiki1 and removed in Semantic MediaWiki 3.0.2Released on an unknown date unknown versions of MediaWiki2 since it has not shown the expected improvements. Instead the internal prefetch lookup feature will be used.3
Default setting
$smwgValueLookupCacheLifetime = 60 * 60 * 24 * 7;
This means that by default the lifetime of the value lookup cache is one week until an item is being replaced in case this has not happened earlier.
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 forced cache updates
$smwgValueLookupCacheLifetime = 0;
This means that an item is kept until it is being replaced, flushed, or dropped.
- Shorten the cache lifetime to a day
$smwgValueLookupCacheLifetime = 60 * 60 * 24;
This means that an item is kept for a maximum of one day.
- Extend the cache lifetime to a month
$smwgValueLookupCacheLifetime = 60 * 60 * 24 * 30;
This means that an item is kept for a maximum of one month.
See also
- Help page on configuration parameter
$smwgExperimentalFeatures
Sets experimental features - Help page on configuration parameter
$smwgValueLookupCacheType
Sets a separate cache type for the object cache when requesting value lookups from the database - Help page on configuration parameter
$smwgValueLookupFeatures
No description was provided.
- Caching in general