From: Victor Vasiliev
Date: Wed, 16 Jan 2008 18:03:52 +0000 (+0000)
Subject: * Add DBA-caching to installer
X-Git-Tag: 1.31.0-rc.0~49959
X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=c9282508299944f15c62819224b8cad675d308f7;p=lhc%2Fweb%2Fwiklou.git
* Add DBA-caching to installer
---
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index af03bfab87..1aa8f28f2d 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -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
diff --git a/config/index.php b/config/index.php
index c4cf210cb1..781a356da1 100644
--- a/config/index.php
+++ b/config/index.php
@@ -478,6 +478,8 @@ if ( $conf->eaccel ) {
print "eAccelerator installed\n";
}
+$conf->dba = function_exists( 'dba_open' );
+
if( !( $conf->turck || $conf->eaccel || $conf->apc || $conf->xcache ) ) {
echo( 'Couldn\'t find Turck MMCache,
eAccelerator,
@@ -1204,7 +1206,7 @@ if( count( $errs ) ) {
@@ -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
index 0000000000..c485a1a666
--- /dev/null
+++ b/images/tmp/.htaccess
@@ -0,0 +1 @@
+Order Allow,Deny