Manual:PruneFileCache.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.19 |
| 미디어위키 파일: pruneFileCache.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.2 • 1.45.6 • 1.43.11 |
| 클래스: | PruneFileCache |
상세
pruneFileCache.php file is a maintenance script to prune file cache for pages, objects, resources, etc.
This script requires $wgUseFileCache = true; to be set in LocalSettings.php in order to prune the file cache from $wgFileCacheDirectory.
옵션/인수
| Option | Description | Required? |
|---|---|---|
| --agedays | How many days old files must be in order to delete | Required |
| --subdir | Prune one $wgFileCacheDirectory subdirectory name | Optional |
사용법
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.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.