Skip to content

Commit 575d444

Browse files
authored
Add db-mainstash
1 parent 5a5466d commit 575d444

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

GlobalCache.php

+25-1
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,34 @@
6666
'reportDupes' => false
6767
];
6868

69+
$wgObjectCaches['db-mainstash'] = [
70+
'class' => 'SqlBagOStuff',
71+
'cluster' => 'extension2',
72+
'server' => [
73+
'type' => 'mysql',
74+
'host' => $beta ? 'db121.miraheze.org' : 'db131.miraheze.org',
75+
'dbname' => $beta ? 'mainstash' : 'mainstash',
76+
'user' => $wgDBuser,
77+
'password' => $wgDBpassword,
78+
'ssl' => true,
79+
'flags' => 0,
80+
'sslCAFile' => '/etc/ssl/certs/Sectigo.crt',
81+
],
82+
'dbDomain' => 'mainstash',
83+
'globalKeyLbDomain' => 'mainstash',
84+
'tableName' => 'objectstash',
85+
'multiPrimaryMode' => true,
86+
'purgePeriod' => 100,
87+
'purgeLimit' => 1000,
88+
'reportDupes' => false
89+
];
90+
91+
$wgMainStash = 'db-mainstash';
92+
6993
$wgSessionCacheType = 'memcached-mem-1';
7094

7195
// Same as $wgMainStash
72-
$wgMWOAuthSessionCacheType = 'db-replicated';
96+
$wgMWOAuthSessionCacheType = 'db-mainstash';
7397

7498
$redisServerIP = '[2a10:6740::6:306]:6379';
7599

0 commit comments

Comments
 (0)