Manual:cleanupUploadStash.php

From Linux Web Expert

Revision as of 00:54, 2 March 2024 by imported>Shirayuki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.18
<translate> MediaWiki version:</translate>

Details

The 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

This script does not take any options or arguments other than standard command-line options .

Usage

php maintenance/cleanupUploadStash.php
Terminal

See also