Followup r101507: don't automatically use APC for the localization cache if it is...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 23 Nov 2011 13:12:22 +0000 (13:12 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 23 Nov 2011 13:12:22 +0000 (13:12 +0000)
includes/LocalisationCache.php

index c44be13..1d0ccc5 100644 (file)
@@ -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(