Unverified Commit df437885 authored by catch's avatar catch Committed by damiankloip
Browse files

Issue #2958403 by mcdruid, catch, mxh, bkosborne, vurt, Jeremy, damiankloip,...

Issue #2958403 by mcdruid, catch, mxh, bkosborne, vurt, Jeremy, damiankloip, Fabianx: enable compression by default with memcached extension
parent a39c03a9
......@@ -249,14 +249,14 @@ default options (selected through performance testing). These options will be
set unless overridden in settings.php.
$settings['memcache']['options'] = [
Memcached::OPT_COMPRESSION => FALSE,
Memcached::OPT_COMPRESSION => TRUE,
Memcached::OPT_DISTRIBUTION => Memcached::DISTRIBUTION_CONSISTENT,
];
These are as follows:
* Turn off compression, as this takes more CPU cycles than it's worth for most
users
* Turn on compression, as this allows more data to be stored and in turn
should result in less evictions.
* Turn on consistent distribution, which allows you to add/remove servers
easily
......
......@@ -23,7 +23,7 @@ class DrupalMemcached extends DrupalMemcacheBase {
$this->memcache = new \Memcached();
$default_opts = [
\Memcached::OPT_COMPRESSION => FALSE,
\Memcached::OPT_COMPRESSION => TRUE,
\Memcached::OPT_DISTRIBUTION => \Memcached::DISTRIBUTION_CONSISTENT,
];
foreach ($default_opts as $key => $value) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment