* Add DBA-caching to installer
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Wed, 16 Jan 2008 18:03:52 +0000 (18:03 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Wed, 16 Jan 2008 18:03:52 +0000 (18:03 +0000)
RELEASE-NOTES
config/index.php
images/tmp/.htaccess [new file with mode: 0644]

index af03bfa..1aa8f28 100644 (file)
@@ -129,7 +129,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 12536) User should be able to get MediaWiki version from any page
 * (bug 12622) A JavaScript constant to declare whether api.php is available
 * Add caching to the AJAX search
-* Added APCOND_INGROUPS
+* Add APCOND_INGROUPS
+* Add DBA caching to installer 
 * (bug 18585) Added a bunch of parameters to the revertpage message
 
 
index c4cf210..781a356 100644 (file)
@@ -478,6 +478,8 @@ if ( $conf->eaccel ) {
        print "<li><a href=\"http://eaccelerator.sourceforge.net/\">eAccelerator</a> installed</li>\n";
 }
 
+$conf->dba = function_exists( 'dba_open' );
+
 if( !( $conf->turck || $conf->eaccel || $conf->apc || $conf->xcache ) ) {
        echo( '<li>Couldn\'t find <a href="http://turck-mmcache.sourceforge.net">Turck MMCache</a>,
                <a href="http://eaccelerator.sourceforge.net">eAccelerator</a>,
@@ -1204,7 +1206,7 @@ if( count( $errs ) ) {
        </p>
 
        <div class="config-input">
-               <label class='column'>Shared memory caching:</label>
+               <label class='column'>Object caching:</label>
 
                <ul class="plain">
                <li><?php aField( $conf, "Shm", "No caching", "radio", "none" ); ?></li>
@@ -1229,6 +1231,11 @@ if( count( $errs ) ) {
                                aField( $conf, "Shm", "eAccelerator", "radio", "eaccel" );
                                echo "</li>";
                        }
+                       if ( $conf->dba ) {
+                               echo "<li>";
+                               aField( $conf, "Shm", "DBA", "radio", "dba" );
+                               echo "</li>";
+                       }
                ?>
                <li><?php aField( $conf, "Shm", "Memcached", "radio", "memcached" ); ?></li>
                </ul>
@@ -1240,6 +1247,7 @@ if( count( $errs ) ) {
                <br /><br />
                MediaWiki can also detect and support eAccelerator, Turck MMCache, APC, and XCache, but
                these should not be used if the wiki will be running on multiple application servers.
+               You can also use DBA for storing object cache in the file.
        </p>
 </div>
 
@@ -1500,6 +1508,10 @@ function writeLocalSettings( $conf ) {
                        $cacheType = 'CACHE_ACCEL';
                        $mcservers = 'array()';
                        break;
+               case 'dba':
+                       $cacheType = 'CACHE_DBA';
+                       $mcservers = 'array()';
+                       break;
                default:
                        $cacheType = 'CACHE_NONE';
                        $mcservers = 'array()';
diff --git a/images/tmp/.htaccess b/images/tmp/.htaccess
new file mode 100644 (file)
index 0000000..c485a1a
--- /dev/null
@@ -0,0 +1 @@
+Order Allow,Deny\r