|
66 | 66 | 'reportDupes' => false
|
67 | 67 | ];
|
68 | 68 |
|
| 69 | +$wgObjectCaches['db-mainstash'] = [ |
| 70 | + 'class' => 'SqlBagOStuff', |
| 71 | + 'server' => [ |
| 72 | + 'type' => 'mysql', |
| 73 | + 'host' => $beta ? 'db121.miraheze.org' : 'db131.miraheze.org', |
| 74 | + 'dbname' => $beta ? 'testmainstash' : 'mainstash', |
| 75 | + 'user' => $wgDBuser, |
| 76 | + 'password' => $wgDBpassword, |
| 77 | + 'ssl' => true, |
| 78 | + 'flags' => 0, |
| 79 | + 'sslCAFile' => '/etc/ssl/certs/Sectigo.crt', |
| 80 | + ], |
| 81 | + 'dbDomain' => 'mainstash', |
| 82 | + 'globalKeyLbDomain' => 'mainstash', |
| 83 | + 'tableName' => 'objectstash', |
| 84 | + 'multiPrimaryMode' => false, |
| 85 | + 'purgePeriod' => 100, |
| 86 | + 'purgeLimit' => 1000, |
| 87 | + 'reportDupes' => false |
| 88 | +]; |
| 89 | + |
| 90 | +$wgMainStash = 'db-mainstash'; |
| 91 | + |
69 | 92 | $wgSessionCacheType = 'memcached-mem-1';
|
70 | 93 |
|
71 | 94 | // Same as $wgMainStash
|
72 |
| -$wgMWOAuthSessionCacheType = 'db-replicated'; |
| 95 | +$wgMWOAuthSessionCacheType = 'db-mainstash'; |
73 | 96 |
|
74 | 97 | $redisServerIP = '[2a10:6740::6:306]:6379';
|
75 | 98 |
|
|
85 | 108 | 'newusopediawiki',
|
86 | 109 | 'xedwiki',
|
87 | 110 | ];
|
88 |
| -//$disableWarmup = in_array( $wgDBname, $disableWarmupArray ); |
| 111 | +// $disableWarmup = in_array( $wgDBname, $disableWarmupArray ); |
89 | 112 | $disableWarmup = true;
|
90 | 113 | $wgParsoidCacheConfig = [
|
91 |
| - 'StashType' => 'db-replicated', |
92 |
| - 'StashDuration' => 86400 * 10, |
| 114 | + // Defaults to MainStash |
| 115 | + 'StashType' => null, |
| 116 | + // 24h in production, VE will fail to save after this time. |
| 117 | + 'StashDuration' => 24 * 60 * 60, |
93 | 118 | 'CacheThresholdTime' => 0.0,
|
94 | 119 | 'WarmParsoidParserCache' => $disableWarmup ? false : true,
|
95 | 120 | ];
|
|
0 commit comments