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 36 of file purgeChangedFiles.php.
PurgeChangedFiles::__construct | ( | ) |
Definition at line 66 of file purgeChangedFiles.php.
PurgeChangedFiles::execute | ( | ) |
Definition at line 80 of file purgeChangedFiles.php.
References $wgHTCPRouting, purgeFromLogType(), and verbose().
Definition at line 243 of file purgeChangedFiles.php.
References FileRepo\getDeletedHashPath(), FileRepo\getFileSha1(), and File\getPath().
Referenced by purgeFromArchiveTable(), and purgeFromLogType().
Definition at line 214 of file purgeChangedFiles.php.
References LocalFile\exists(), FileRepo\fileExists(), FileRepo\getBackend(), getDeletedPath(), File\getName(), LocalRepo\getReplicaDB(), File\getTitle(), LocalRepo\newFromArchiveName(), and 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 141 of file purgeChangedFiles.php.
References $params, getDeletedPath(), 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 255 of file purgeChangedFiles.php.
Referenced by execute(), and purgeFromLogType().