Manual:purgeChangedFiles.php

From Linux Web Expert

Revision as of 04:53, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(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.22
<translate> MediaWiki version:</translate>

詳細

purgeChangedFiles.php file is a maintenance script to scan the logging table and to purge affected files and thumbnails within a timeframe. This script processes 100 items in a batch.

Options/Arguments

Option Description Required?
--starttime Starting timestamp <translate> Required</translate>
--endtime Ending timestamp <translate> Required</translate>
--type Comma-separated list of types of changes to send purges for (created,deleted,modified,all) <translate> Optional</translate>
--htcp-dest HTCP announcement destination (IP:port) <translate> Optional</translate>
--dry-run Do not send purge requests <translate> Optional</translate>
--sleep-per-batch Milliseconds to sleep between batches <translate> Optional</translate>
--verbose Show more output <translate> Optional</translate>

Usage

php maintenance/purgeChangedFiles.php --starttime dt1 --endtime dt2 [ --type| --htcp-dest| --dry-run| --sleep-per-batch| --verbose ]

Dry run to check purging

Terminal

Purging

Terminal

See also