MediaWiki  REL1_20
PruneFileCache Class Reference

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

Inheritance diagram for PruneFileCache:
Collaboration diagram for PruneFileCache:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.

Protected Member Functions

 prune_directory ($dir, $report=false)

Protected Attributes

 $minSurviveTimestamp

Detailed Description

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

Definition at line 31 of file pruneFileCache.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 35 of file pruneFileCache.php.

References Maintenance\addOption().


Member Function Documentation

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 42 of file pruneFileCache.php.

References $dir, Maintenance\error(), Maintenance\getOption(), Maintenance\output(), and prune_directory().

PruneFileCache::prune_directory ( dir,
report = false 
) [protected]
Parameters:
$dirstring
$reportstring|bool Use 'report' to report the directories being scanned

Definition at line 81 of file pruneFileCache.php.

References $dir, $file, $path, and Maintenance\output().

Referenced by execute().


Member Data Documentation

PruneFileCache::$minSurviveTimestamp [protected]

Definition at line 33 of file pruneFileCache.php.


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