MediaWiki master
PurgeChangedFiles Class Reference

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

Inherits Maintenance.

Collaboration diagram for PurgeChangedFiles:

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.

Detailed Description

Maintenance script that scans the deletion log and purges affected files within a timeframe.

Definition at line 26 of file purgeChangedFiles.php.

Constructor & Destructor Documentation

◆ __construct()

PurgeChangedFiles::__construct ( )

Definition at line 56 of file purgeChangedFiles.php.

Member Function Documentation

◆ execute()

PurgeChangedFiles::execute ( )

Definition at line 70 of file purgeChangedFiles.php.

References $wgHTCPRouting, purgeFromLogType(), and verbose().

◆ getDeletedPath()

PurgeChangedFiles::getDeletedPath ( LocalRepo $repo,
LocalFile $file )
protected

Definition at line 233 of file purgeChangedFiles.php.

Referenced by purgeFromArchiveTable(), and purgeFromLogType().

◆ purgeFromArchiveTable()

◆ purgeFromLogType()

PurgeChangedFiles::purgeFromLogType ( $type)
protected

Purge cache and thumbnails for changes of the given type.

Parameters
string$typeType 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().

◆ verbose()

PurgeChangedFiles::verbose ( $msg)
protected

Send an output message iff the 'verbose' option has been provided.

Parameters
string$msgMessage to output

Definition at line 245 of file purgeChangedFiles.php.

Referenced by execute(), and purgeFromLogType().


The documentation for this class was generated from the following file: