Bug: T220470
Change-Id: I8b85859b3991d2360a74107299d44da2c60d0214
* @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';
}