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 36 of file purgeChangedFiles.php.

Constructor & Destructor Documentation

◆ __construct()

PurgeChangedFiles::__construct ( )

Definition at line 66 of file purgeChangedFiles.php.

Member Function Documentation

◆ execute()

PurgeChangedFiles::execute ( )

Definition at line 80 of file purgeChangedFiles.php.

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

◆ getDeletedPath()

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

◆ 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 141 of file purgeChangedFiles.php.

References $params, getDeletedPath(), 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 255 of file purgeChangedFiles.php.

Referenced by execute(), and purgeFromLogType().


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