Handbuch:$wgParserCacheType
Outdated translations are marked like this.
Parser-Cache: $wgParserCacheType | |
---|---|
Parsercache-Einstellung |
|
Eingeführt in Version: | 1.5.0 |
Entfernt in Version: | weiterhin vorhanden |
Erlaubte Werte: | (Einer der CACHE-Konstanten) siehe unten |
Standardwert: | CACHE_ANYTHING |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
Parsercache-Einstellung.
Here are the available cache constants, as defined in Defines.php
CACHE_ANYTHING
- Use anything, as long as it worksCACHE_NONE
- Do not cacheCACHE_DB
- Store cache objects in the DBCACHE_MEMCACHED
- memcached, must specify servers in Handbuch:$wgMemCachedServersCACHE_ACCEL
- APC, or WinCache, whichever is available, in this order. Determined by the function "ObjectCache::newAccelerator".
Anmerkung
For a very large wiki (tens of thousands of pages) value of CACHE_DB
might be preferable to CACHE_MEMCACHED
.
Although memcached is faster, it won't be able to cache everything (no reasonable amount of memory would be enough), while DB will be.
Therefore DB will have much higher percentage of cache hits.
If you set $wgMainCacheType
then the values for $wgParserCacheType and $wgMessageCacheType
will inherit it.
If no cache choice is configured (by default $wgMainCacheType
is CACHE_NONE
), then CACHE_ANYTHING
will forward to CACHE_DB
.
Siehe auch
- Manual:Caching
- $wgEnableParserCache (entfernt in 1.33)