forked from miraheze/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Redis.php
36 lines (32 loc) · 974 Bytes
/
Redis.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
$wgObjectCaches['redis'] = array(
'class' => 'RedisBagOStuff',
'servers' => array( '81.4.127.174:6379' ),
'password' => $wmgRedisPassword,
);
$wgMainCacheType = 'redis';
$wgSessionCacheType = 'redis';
$wgSessionsInObjectCache = true;
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_DB;
$wgLanguageConverterCacheType = CACHE_DB;
$wgJobTypeConf['default'] = array(
'class' => 'JobQueueRedis',
'redisServer' => '81.4.127.174:6379',
'redisConfig' => array(
'connectTimeout' => 2,
'password' => $wmgRedisPassword,
'compression' => 'gzip',
),
'claimTTL' => 3600,
'daemonized' => true,
);
$wgJobQueueAggregator = array(
'class' => 'JobQueueAggregatorRedis',
'redisServers' => array( '81.4.127.174:6379', '81.4.127.174:6379' ), // fake misc2 as fallback
'redisConfig' => array(
'connectTimeout' => 2,
'password' => $wmgRedisPassword,
'compression' => 'gzip',
)
);