Manual:pruneFileCache.php

From Linux Web Expert

Revision as of 04:53, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.19
<translate> MediaWiki version:</translate>

詳細

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 <translate> Required</translate>
--subdir Prune one $wgFileCacheDirectory subdirectory name <translate> Optional</translate>

Usage

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


Terminal

See also