Page MenuHomePhabricator

index.php.CVS.1.93.patch

Authored By
bzimport
Nov 21 2014, 8:09 PM
Size
2 KB
Referenced Files
None
Subscribers
None

index.php.CVS.1.93.patch

Index: config/index.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/config/index.php,v
retrieving revision 1.94
diff -u -r1.94 index.php
--- config/index.php 24 Feb 2005 14:55:38 -0000 1.94
+++ config/index.php 2 Mar 2005 01:32:34 -0000
@@ -273,8 +273,14 @@
$conf->turck = function_exists( 'mmcache_get' );
if ( $conf->turck ) {
print "<li><a href=\"http://turck-mmcache.sourceforge.net/\">Turck MMCache</a> installed</li>\n";
-} else {
- print "<li><a href=\"http://turck-mmcache.sourceforge.net/\">Turck MMCache</a> not installed, " .
+}
+$conf->eaccel = function_exists( 'eaccelerator_get' );
+if ( $conf->eaccel ) {
+ $conf->turck = 'eaccelerator';
+ print "<li><a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator</a> installed</li>\n";
+}
+if (!$conf->turck && !$conf->eaccel) {
+ print "<li>Neither <a href=\"http://turck-mmcache.sourceforge.net/\">Turck MMCache</a> nor <a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator</a> are installed, " .
"can't use object caching functions</li>\n";
}
@@ -748,12 +754,19 @@
echo "</li>";
}
?>
+ <?php
+ if ( $conf->eaccel ) {
+ echo "<li>";
+ aField( $conf, "Shm", "eAccelerator", "radio", "eaccel" );
+ echo "</li>";
+ }
+ ?>
<li><?php aField( $conf, "Shm", "Memcached", "radio", "memcached" ); ?></li>
<li><?php aField( $conf, "MCServers", "Memcached servers", "" ) ?></li>
</ul>
</dd>
<dt>
- Using a shared memory system such as Turck MMCache or Memcached will speed
+ 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
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.
@@ -950,6 +963,7 @@
$mcservers = var_export( $conf->MCServerArray, true );
break;
case 'turck':
+ case 'eaccel':
$memcached = 'false';
$mcservers = 'array()';
$turck = '';
@@ -1071,6 +1085,7 @@
\$wgUseMemCached = $memcached;
\$wgMemCachedServers = $mcservers;
{$turck}\$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name() == 'apache';
+{$turck}\$wgUseEAccelShm = function_exists( 'eaccelerator_get' ) && php_sapi_name() == 'apache';
## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1365
Default Alt Text
index.php.CVS.1.93.patch (2 KB)

Event Timeline