MediaWiki version:

Details edit

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 edit

Option Description Required?
--agedays How many days old files must be in order to delete Required
--subdir Prune one $wgFileCacheDirectory subdirectory name Optional

Usage edit

php maintenance/pruneFileCache.php --agedays days [ --subdir ]


See also edit