MediaWiki master
PruneFileCache Class Reference

Maintenance script that prunes file cache for pages, objects, resources, etc. More...

Inherits Maintenance.

Collaboration diagram for PruneFileCache:

Public Member Functions

 __construct ()
 
 execute ()
 

Protected Member Functions

 prune_directory ( $dir, $report=false)
 

Protected Attributes

int $minSurviveTimestamp
 

Detailed Description

Maintenance script that prunes file cache for pages, objects, resources, etc.

Definition at line 33 of file pruneFileCache.php.

Constructor & Destructor Documentation

◆ __construct()

PruneFileCache::__construct ( )

Definition at line 38 of file pruneFileCache.php.

Member Function Documentation

◆ execute()

PruneFileCache::execute ( )

Definition at line 45 of file pruneFileCache.php.

References $wgFileCacheDirectory, $wgUseFileCache, and prune_directory().

◆ prune_directory()

PruneFileCache::prune_directory ( $dir,
$report = false )
protected
Parameters
string$dir
string | bool$reportUse 'report' to report the directories being scanned

Definition at line 84 of file pruneFileCache.php.

References $path, and prune_directory().

Referenced by execute(), and prune_directory().

Member Data Documentation

◆ $minSurviveTimestamp

int PruneFileCache::$minSurviveTimestamp
protected

Definition at line 36 of file pruneFileCache.php.


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