Manual:$wgFileCacheDepth/fr

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgFileCacheDepth and the translation is 0% complete.

Other languages:
English • ‎français • ‎magyar • ‎polski • ‎日本語
Cache de fichiers: $wgFileCacheDepth
Depth of subdirectory hierarchy under $wgFileCacheDirectory .
Introduit dans la version :1.17.0 (r77843)
Retiré dans la version :Encore utilisé
Valeurs autorisées :0–32
Valeur par défaut :2
Autres paramètres : Alphabétique | Par Fonction

Details

This variable controls the depth of the subdirectory hierarchy created under $wgFileCacheDirectory to store cached pages when $wgUseFileCache = true;.

By default, two levels of intermediate directories are created, matching the behavior in MediaWiki 1.16 and earlier. The directories are named using prefixes of the hexadecimal MD5 hash of the page title. For example, if the title of the page was "Example" (which has the MD5 hash "0a52730597fb4ffa01fc117d9e71e3a9"), the file in which the cached page was stored would be named:

$wgFileCacheDirectory /0/0a/Example.html

The purpose of the subdirectory hierarchy is to spread the cached files evenly around several directories, thereby reducing the number of files in each individual directory. On some file systems, this can improve performance if the number of cached pages is large. However, if your wiki is small, or if you know your file system can handle huge directories efficiently, you might want to set $wgFileCacheDepth = 0; to get rid of the intermediate directories entirely. (Conversely, if your wiki is huge, you could try increasing the value to spread the files over even more directories.)

See also