MediaWiki
REL1_20
|
Maintenance script that prunes file cache for pages, objects, resources, etc. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
Protected Member Functions | |
prune_directory ($dir, $report=false) | |
Protected Attributes | |
$minSurviveTimestamp |
Maintenance script that prunes file cache for pages, objects, resources, etc.
Definition at line 31 of file pruneFileCache.php.
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().
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] |
$dir | string |
$report | string|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().
PruneFileCache::$minSurviveTimestamp [protected] |
Definition at line 33 of file pruneFileCache.php.