手册:PruneFileCache.php

This page is a translated version of the page Manual:PruneFileCache.php and the translation is 67% complete.
MediaWiki版本:
1.19

细节

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

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
In MediaWiki version 1.39.11 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also