Skip to content

Commit

Permalink
Memcached: Set allow_tcp_nagle_delay
Browse files Browse the repository at this point in the history
Also set timeout to 500ms
  • Loading branch information
paladox authored Nov 28, 2023
1 parent f6e45f0 commit 2b7881e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GlobalCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
'retry_timeout' => -1,
'loggroup' => 'memcached',
// 500ms, in microseconds
'timeout' => 0.25 * 1e6,
'timeout' => 0.5 * 1e6,
'allow_tcp_nagle_delay' => false,
];

$wgObjectCaches['mysql-multiwrite'] = [
Expand Down Expand Up @@ -137,7 +138,8 @@
'retry_timeout' => -1,
'loggroup' => 'memcached',
// 500ms, in microseconds
'timeout' => 0.25 * 1e6,
'timeout' => 0.5 * 1e6,
'allow_tcp_nagle_delay' => false
];

$redisServerIP = '[2a10:6740::6:406]:6379';
Expand Down

0 comments on commit 2b7881e

Please sign in to comment.