From 3938e515ac93a662247e04deda9cffac47109105 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 23 Nov 2011 13:12:22 +0000 Subject: [PATCH] Followup r101507: don't automatically use APC for the localization cache if it is available. I've expressed reservations in my CR comments (issues abound wherever maintenance scripts, server farms or manualRecache are involved), but the real reason is that three people (Siebrand on CR, Antoine/hashar in person and Rusty Burchfield on bug 32602) have reported problems with the APC LC, and had to set $wgLocalisationCacheConf['store'] = 'files'; explicitly to get LC to work again. --- includes/LocalisationCache.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index c44be13f70..1d0ccc5990 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -163,12 +163,7 @@ class LocalisationCache { $storeClass = 'LCStore_Accel'; break; case 'detect': - try { - $c = wfGetCache( CACHE_ACCEL ); - $storeClass = 'LCStore_Accel'; - } catch( Exception $c ) { - $storeClass = $wgCacheDirectory ? 'LCStore_CDB' : 'LCStore_DB'; - } + $storeClass = $wgCacheDirectory ? 'LCStore_CDB' : 'LCStore_DB'; break; default: throw new MWException( -- 2.20.1