Manual:PruneFileCache.php/ja

MediaWiki バージョン:
1.19
Category:MediaWiki code/ja#PruneFileCache.php

詳細

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.

Options/Arguments

OptionDescriptionRequired?
--agedaysHow many days old files must be in order to delete必須
--subdirPrune one $wgFileCacheDirectory subdirectory name省略可能

Usage

php maintenance/run.php pruneFileCache --agedays days [ --subdir ]
Terminal
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

See also

Category:Maintenance scripts/ja#PruneFileCache.php Category:File maintenance scripts/ja
Category:File maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja