Manual:$wgCachePrefix/en

From Linux Web Expert

Revision as of 08:55, 12 October 2021 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Profiling, testing and debugging</translate>: $wgCachePrefix
Custom value for the cache key prefix.
<translate> Introduced in version:</translate>1.19.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(string) or false
<translate> Default value:</translate>false

Details

Overwrite the caching key prefix with custom value. This value is prefixed to the beginning of caching keys to differentiate between caching entries for different wikis stored in the same cache.

If this variable is set to false (default), the cache key defaults to being DBName-DBPrefix (Also known as the Wiki id). This is almost always sufficient, and it is unlikely one would want to set this value.

e.g. "cache key: DBNAME:resourceloader:[...]" to "cache key: $wgCachePrefix:resourceloader:[...]"