Manual:cleanupUploadStash.php
MediaWiki version: | ≥ 1.18 |
MediaWiki file: cleanupUploadStash.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | CleanupUploadStash |
Details
editThe cleanupUploadStash.php script removes old or broken uploads from the temporary file storage and cleans up associated database records from the table uploadstash . This script can be used to clean up abandoned files in the temporary file stash.
All files created less than the last n seconds ago as defined by $wgUploadStashMaxAge
will stay; older files will be deleted.
Options/Arguments
editThis script does not take any options or arguments other than standard command-line options .
Usage
editphp maintenance/run.php cleanupUploadStash
Terminal
$ php maintenance/run.php cleanupUploadStash Getting list of files to clean up... No stashed files to cleanup according to the DB. Deleting old thumbnails... 3 done Deleting orphaned temp files... 7 done
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.