|
MediaWiki master
|
Maintenance script that scans the deletion log and purges affected files within a timeframe. More...
Inherits Maintenance.

Public Member Functions | |
| __construct () | |
| execute () | |
Protected Member Functions | |
| getDeletedPath (LocalRepo $repo, LocalFile $file) | |
| purgeFromArchiveTable (LocalRepo $repo, LocalFile $file) | |
| purgeFromLogType ( $type) | |
| Purge cache and thumbnails for changes of the given type. | |
| verbose ( $msg) | |
| Send an output message iff the 'verbose' option has been provided. | |
Maintenance script that scans the deletion log and purges affected files within a timeframe.
Definition at line 26 of file purgeChangedFiles.php.
| PurgeChangedFiles::__construct | ( | ) |
Definition at line 56 of file purgeChangedFiles.php.
| PurgeChangedFiles::execute | ( | ) |
Definition at line 70 of file purgeChangedFiles.php.
References $wgHTCPRouting, purgeFromLogType(), and verbose().
Definition at line 233 of file purgeChangedFiles.php.
Referenced by purgeFromArchiveTable(), and purgeFromLogType().
Definition at line 204 of file purgeChangedFiles.php.
References MediaWiki\FileRepo\File\LocalFile\exists(), MediaWiki\FileRepo\FileRepo\fileExists(), MediaWiki\FileRepo\FileRepo\getBackend(), getDeletedPath(), MediaWiki\FileRepo\File\File\getName(), MediaWiki\FileRepo\LocalRepo\getReplicaDB(), MediaWiki\FileRepo\File\File\getTitle(), MediaWiki\FileRepo\LocalRepo\newFromArchiveName(), and MediaWiki\FileRepo\File\LocalFile\purgeOldThumbnails().
Referenced by purgeFromLogType().
|
protected |
Purge cache and thumbnails for changes of the given type.
| string | $type | Type of change to find |
Definition at line 131 of file purgeChangedFiles.php.
References MediaWiki\Logging\LogEntryBase\extractParams(), getDeletedPath(), MediaWiki\Title\Title\makeTitle(), NS_FILE, purgeFromArchiveTable(), and verbose().
Referenced by execute().
|
protected |
Send an output message iff the 'verbose' option has been provided.
| string | $msg | Message to output |
Definition at line 245 of file purgeChangedFiles.php.
Referenced by execute(), and purgeFromLogType().