Status: | effective |
Progress: | 100% |
Version: | 3.2.0+ |
Help:Maintenance script disposeOutdatedEntities.php
MediaWiki file: Maintenance script disposeOutdatedEntities.php | |
---|---|
Location: | /maintenance/ |
Source code: | script disposeOutdatedEntities.php master • script disposeOutdatedEntities.php 1.41.1 • script disposeOutdatedEntities.php 1.40.3 • script disposeOutdatedEntities.php 1.39.7 |
Classes: | script disposeOutdatedEntities.php Find code • script disposeOutdatedEntities.php Find documentation |
maintenance script allows to dispose outdated entities, i.e. entities which were marked as deleted. The maintenance script was introduced in Semantic MediaWiki 3.2.0Released on an unknown date unknown versions of MediaWiki.12
The "disposeOutdatedEntities.php"Depending on the size and editing activity of the respective wiki it is recommended to run this maintenance script either daily or weekly via cron.
Usage
php disposeOutdatedEntities.php [--with-maintenance-log]
Using this maintenance script is equivalent to the following script usages in earlier versions of Semantic MediaWiki:
- Semantic MediaWiki 3.0.x to Semantic MediaWiki 3.1.x
php rebuildData.php --skip-properties --dispose-outdated
- Semantic MediaWiki 2.4.x to Semantic MediaWiki 2.5.x
php rebuildData.php --skip-properties -s 1 -e 1
Parameters
Maintenance scripts provide generic maintenance parameters, script dependent parameters and depending on the maintenance script script specific parameters which are described on this page if provided.
- Script specific parameters
Parameter | Description |
---|---|
--with-maintenance-log
|
Adds a log entry to the "Semantic MediaWiki log" on special page "Log" (&type=smw ).3
File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> If you are using this parameter make sure that MediaWiki's configuration parameter |
Note
If this maintenance script was not run for a while and as a result a threshold of 20,000 outdated entities is reached on the wiki a maintenance alert will be added to the Semantic MediaWiki dashboard reminding of this task.1
See also
- Help page on outdated entities