Changed the constructor to only take one optional dir param, the only place it gets called is ObjectCache with no parameters.
* $wgUseInstantCommons added for quick and easy enabling of Commons as a remote
file repository
* $wgWikiId added to override default output of wfWikiId()
+* $wgDBAhandler added to choose a DBA handler when using CACHE_DBA
=== New features in 1.16 ===
class DBABagOStuff extends BagOStuff {
var $mHandler, $mFile, $mReader, $mWriter, $mDisabled;
- public function __construct( $handler = 'db3', $dir = false ) {
+ public function __construct( $dir = false ) {
+ global $wgDBAhandler;
if ( $dir === false ) {
global $wgTmpDirectory;
$dir = $wgTmpDirectory;
$this->mFile = "$dir/mw-cache-" . wfWikiID();
$this->mFile .= '.db';
wfDebug( __CLASS__ . ": using cache file {$this->mFile}\n" );
- $this->mHandler = $handler;
+ $this->mHandler = $wgDBAhandler;
}
/**
$wgParserCacheExpireTime = 86400;
+$wgDBAhandler = 'db3';
+
$wgSessionsInMemcached = false;
/** This is used for setting php's session.save_handler. In practice, you will