Manuel:PruneFileCache.php
Version de MediaWiki : | ≥ 1.19 |
Fichier MediaWiki : pruneFileCache.php | |
---|---|
Emplacement : | maintenance/ |
Code source : | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes : | PruneFileCache |
Détails
Le fichier pruneFileCache.php est un script de maintenance qui diminue la mise en cache des pages, des objets, des ressources, 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 | obligatoire |
--subdir | Prune one $wgFileCacheDirectory subdirectory name | optionnel |
Usage
php maintenance/pruneFileCache.php --agedays days [ --subdir ]
Terminal
$ php maintenance/pruneFileCache.php --agedays 7 Pruning `/var/www/html/wiki/images/cache` directory... Done pruning `/var/www/html/wiki/images/cache` directory