Podręcznik:CleanupUploadStash.php
Appearance
| Wersja MediaWiki: | ≥ 1.18 |
| Plik MediaWiki: cleanupUploadStash.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klasy: | CleanupUploadStash |
Szczegóły
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.
Użycie
php 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
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.