From e7427010916608f3b67f0c385f44e5f45048b11b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 22 May 2019 09:30:50 -0700 Subject: [PATCH] objectcache: make detectLocalServerCache() prefer apcu over apc Bug: T220470 Change-Id: I8b85859b3991d2360a74107299d44da2c60d0214 --- includes/objectcache/ObjectCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index bc87c70b0f..c0adb51860 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -400,10 +400,10 @@ class ObjectCache { * @return int|string Index to cache in $wgObjectCaches */ public static function detectLocalServerCache() { - if ( function_exists( 'apc_fetch' ) ) { - return 'apc'; - } elseif ( function_exists( 'apcu_fetch' ) ) { + if ( function_exists( 'apcu_fetch' ) ) { return 'apcu'; + } elseif ( function_exists( 'apc_fetch' ) ) { + return 'apc'; } elseif ( function_exists( 'wincache_ucache_get' ) ) { return 'wincache'; } -- 2.20.1