Podręcznik:$wgLocalisationCacheConf

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

Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎日本語
Message Cache: $wgLocalisationCacheConf
Localisation cache configuration.
Wprowadzono w wersji:1.16.0 (r52503)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:tablica
Domyślna wartość:see below
Inne ustawienia: Alfabetycznie | Według funkcji

Szczegóły

Localisation cache configuration. Associative array with keys:

  • class: The class to use. May be overridden by extensions.
  • store: The location to store cache data. May be 'files', 'db', 'array' or 'detect'.
    • If set to "files", data will be in CDB files in the directory specified by $wgCacheDirectory . This is significantly faster than storing data into the database (see discussion)
    • If set to "db", data will be stored to the database.
    • If set to "array", data will be in PHP files that store static arrays in the directory specified by $wgCacheDirectory . This is an experimental option.
      This is the fastest option when using PHP-FPM and OPcache (without opcache.file_cache_only), because OPcache will store these arrays. In other configurations (HHVM or opcache.file_cache_only) this mode has no benefit over "files".
    • If set to "detect", files will be used if $wgCacheDirectory is set, otherwise the database will be used.
  • storeClass: The class name for the underlying storage. If set to a class name, it overrides the "store" setting.
  • storeDirectory: If the store class puts its data in files, this is the directory it will use. If this is false, $wgCacheDirectory will be used.
  • manualRecache: Set this to true to disable cache updates on web requests. Use maintenance/rebuildLocalisationCache.php instead.


Domyślna wartość

$wgLocalisationCacheConf = array(
	'class' => 'LocalisationCache',
	'store' => 'detect',
	'storeClass' => false,
	'storeDirectory' => false,
	'manualRecache' => false,
);

Zobacz też