Fix disabling of APC cache when loading message files: apc.enabled has been PHP_INI_S...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 4 Sep 2009 03:41:25 +0000 (03:41 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 4 Sep 2009 03:41:25 +0000 (03:41 +0000)
includes/LocalisationCache.php

index d50e1a7..ae9007f 100644 (file)
@@ -377,9 +377,9 @@ class LocalisationCache {
         */
        protected function readPHPFile( $_fileName, $_fileType ) {
                // Disable APC caching
-               $_apcEnabled = ini_set( 'apc.enabled', '0' );
+               $_apcEnabled = ini_set( 'apc.cache_by_default', '0' );
                include( $_fileName );
-               ini_set( 'apc.enabled', $_apcEnabled );
+               ini_set( 'apc.cache_by_default', $_apcEnabled );
 
                if ( $_fileType == 'core' || $_fileType == 'extension' ) {
                        $data = compact( self::$allKeys );