objectcache: make CACHE_MEMCACHED alias "memcached-php"
This avoid duplicating the "memcached-php" instance/connections Change-Id: I2a9a8182c064c326e9320d82774c5470424a5cfe
This commit is contained in:
parent
f47a6ef583
commit
61c6b312e0
2 changed files with 5 additions and 6 deletions
|
|
@ -2824,7 +2824,6 @@ $wgObjectCaches = [
|
|||
|
||||
CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
|
||||
CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
|
||||
CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
|
||||
|
||||
'db-replicated' => [
|
||||
'class' => ReplicatedBagOStuff::class,
|
||||
|
|
|
|||
|
|
@ -82,11 +82,11 @@ define( 'NS_CATEGORY_TALK', 15 );
|
|||
/** @{
|
||||
* Cache type
|
||||
*/
|
||||
define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
|
||||
define( 'CACHE_NONE', 0 ); // Do not cache
|
||||
define( 'CACHE_DB', 1 ); // Store cache objects in the DB
|
||||
define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers
|
||||
define( 'CACHE_ACCEL', 3 ); // APC or WinCache
|
||||
define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
|
||||
define( 'CACHE_NONE', 0 ); // Do not cache
|
||||
define( 'CACHE_DB', 1 ); // Store cache objects in the DB
|
||||
define( 'CACHE_MEMCACHED', 'memcached-php' ); // Backwards-compatability alias for Memcached
|
||||
define( 'CACHE_ACCEL', 3 ); // APC or WinCache
|
||||
/** @} */
|
||||
|
||||
/** @{
|
||||
|
|
|
|||
Loading…
Reference in a new issue