Jump to: navigation, search
List of maintenance tasks in connection with a Semantic MediaWiki instance
Table of Contents

In order to fully utilize and maintain a Semantic MediaWiki instance, certain maintenance tasks are required to help optimize the system, minimize on-wiki interventions, and keep the administrative work at a minimum.

Property annotation health (a.k.a. semantic gardening)

It is general good practice to monitor the property annotation health and if necessary improve statements or queries that cause an improper value annotation.

Cron jobs

Depending on the size (user base, articles count, annotation amount) script schedules need to be adapted according to the local needs of a wiki instance but some tasks should be run more frequent than others.

hourly .23 php runJobs.php --quiet --maxjobs=100
daily 7.45 php updateSpecialPages.php --quiet
daily 4.15 php rebuildData.php --quiet --shallow-update
daily 5.15 php rebuildPropertyStatistics.php --quiet
daily 6.15 php rebuildConceptCache.php --quiet --update --create
weekly 7.15 php rebuildData.php --quiet -d 100

Explanations about options selected can be found on the individual script help page.

For example, to execute a script every day at 12 add the following to your crontab (or the Windows TaskScheduler)

0 12 * * * php runJobs.php --quiet --maxjobs=100


MediaWiki settings

The following settings can influence Semantic MediaWiki in how certain subjects are visible or updated due to execution (or non execution) of scripts owned by MediaWiki in terms of template, special page updates etc.

  • $wgMiserMode to disable database-intensive features, so that they can be managed/controlled separately
  • $wgJobRunRate number of jobs to perform per request

See also