Manual:PruneFileCache.php
Appearance
| Versão MediaWiki: | ≥ 1.19 |
| Ficheiro do MediaWiki: pruneFileCache.php | |
|---|---|
| Localização: | maintenance/ |
| Código fonte: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | PruneFileCache |
Detalhes
O ficheiro pruneFileCache.php é um script de manutenção para suprimir o cache de ficheiros para páginas, objetos, recursos, etc.
This script requires $wgUseFileCache = true; to be set in LocalSettings.php in order to prune the file cache from $wgFileCacheDirectory.
Options/Arguments
| Option | Description | Required? |
|---|---|---|
| --agedays | How many days old files must be in order to delete | Required |
| --subdir | Prune one $wgFileCacheDirectory subdirectory name | Optional |
Usage
php maintenance/run.php pruneFileCache --agedays days [ --subdir ]
Terminal
$ php maintenance/run.php pruneFileCache --agedays 7 Pruning `/var/www/html/wiki/images/cache` directory... Done pruning `/var/www/html/wiki/images/cache` directory
In MediaWiki version 1.43.6 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.