$smwgEnableUpdateJobs
Configuration parameter details: | |||
Name | $smwgEnableUpdateJobs | ||
Description | Sets whether tasks are deferred until after a page was edited by using the job queue | ||
Default setting | true |
||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | still available | ||
Configuration | Installation | ||
Keyword | performance · job queue |
$smwgEnableUpdateJobs
is a configuration parameter that defers some tasks until after a page was edited by using the MediaWiki job queueing system. The configuration parameter was introduced in Semantic MediaWiki 1.2.0Released on 10 July 2008 and compatible with MW 1.11.x - 1.14.x..
For example, when the type of a property is changed, all affected pages will be scheduled for (later) update. If a wiki generates too many jobs in this way, the following setting can be used to disable jobs. Note that this will cause some parts of the semantic data to get out of date, so that manual modifications (page edits, purging page cache) or the use of maintenance script "rebuildData.php"Allows to rebuild all the semantic data for a selected data backend/store might be necessary.
Note that the following configuration parameters are dependent on the setting to this configuration parameter:
- configuration parameter
$smwgEnabledDeferredUpdate
Sets whether updates to pages are queued and executed after edits (from Semantic MediaWiki 2.4.0Released on 9 July 2016 and compatible with MW 1.19.0 - 1.27.x.) - configuration parameter
$smwgOnDeleteAction
Sets whether the update process for when a page / property and its value assignments are deleted should be send to the job queue (Semantic MediaWiki 1.9.0.1Released on 3 January 2014 and compatible with MW 1.19.0 - 1.22.x. to Semantic MediaWiki 2.3.1Released on 4 January 2016 and compatible with MW 1.19.0 - 1.25.x.)
Default setting[edit]
$smwgEnableUpdateJobs = true;
This means that tasks are deferred until after a page was edited by using the job queue.
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 tasks being deferred to the job queue
$smwgEnableUpdateJobs = false;
This means that tasks are not deferred until after a page was edited by using the job queue.
See also[edit]
- Help page about the job queue
- Help page about
UpdateJob
handler - Help page on configuration parameter
$smwgEnabledDeferredUpdate
Sets whether updates to pages are queued and executed after edits