From d26d659ef1b1897ad501ed173bca431ecbeab88a Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 4 Sep 2009 03:41:25 +0000 Subject: [PATCH] Fix disabling of APC cache when loading message files: apc.enabled has been PHP_INI_SYSTEM since 3.0.13 but apc.cache_by_default works. This reduces the required APC cache space by about half on my test wiki, from 20MB to 10MB. --- includes/LocalisationCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index d50e1a7c1d..ae9007fb37 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -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 ); -- 2.20.1