From: Domas Mituzas Date: Mon, 29 May 2006 11:43:51 +0000 (+0000) Subject: Add APC to installer, note in relnotes.. X-Git-Tag: 1.31.0-rc.0~56975 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=680513065959c06ee8181e4338d1235df3270c87;p=lhc%2Fweb%2Fwiklou.git Add APC to installer, note in relnotes.. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4ec8d176f2..e3cfb460e0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -376,7 +376,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN "show changes" operation in the editor * (bug 4033) Respect $wgStyleDirectory when checking available skins * Remove hideous backslashes from MessagesBr.php - +* Fix APC object cache issues, add functionality to installer == Compatibility == diff --git a/config/index.php b/config/index.php index 7f5ba344b2..d00b3f5d89 100644 --- a/config/index.php +++ b/config/index.php @@ -326,14 +326,22 @@ $conf->turck = function_exists( 'mmcache_get' ); if ( $conf->turck ) { print "
  • Turck MMCache installed
  • \n"; } + +$conf->apc = function_exists('apc_fetch'); +if ($conf->apc ) { + print '
  • APC installed
  • \n'; +} + $conf->eaccel = function_exists( 'eaccelerator_get' ); if ( $conf->eaccel ) { $conf->turck = 'eaccelerator'; print "
  • eAccelerator installed
  • \n"; } -if (!$conf->turck && !$conf->eaccel) { - print "
  • Neither Turck MMCache nor eAccelerator are installed, " . - "can't use object caching functions
  • \n"; +if (!$conf->turck && !$conf->eaccel && !$conf->apc) { + print "
  • Neither Turck MMCache nor ". + "eAccelerator nor ". + "APC are installed, " . + "can't use object caching functions
  • \n"; } $conf->diff3 = false; @@ -883,8 +891,11 @@ if( count( $errs ) ) { aField( $conf, "Shm", "Turck MMCache", "radio", "turck" ); echo ""; } - ?> - apc ) { + echo "
  • "; + aField( $conf, "Shm", "APC", "radio", "apc" ); + echo "
  • "; + } if ( $conf->eaccel ) { echo "
  • "; aField( $conf, "Shm", "eAccelerator", "radio", "eaccel" ); @@ -896,8 +907,8 @@ if( count( $errs ) ) {

    - Using a shared memory system such as Turck MMCache, eAccelerator, or Memcached will speed - up MediaWiki significantly. Memcached is the best solution but needs to be + Using a shared memory system such as Turck MMCache, APC, eAccelerator, or Memcached + will speed up MediaWiki significantly. Memcached is the best solution but needs to be installed. Specify the server addresses and ports in a comma-separted list. Only use Turck shared memory if the wiki will be running on a single Apache server.

    @@ -1111,6 +1122,7 @@ function writeLocalSettings( $conf ) { $mcservers = var_export( $conf->MCServerArray, true ); break; case 'turck': + case 'apc': case 'eaccel': $cacheType = 'CACHE_ACCEL'; $mcservers = 'array()';