Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
memcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
memcache
Commits
d64561ba
Commit
d64561ba
authored
Mar 05, 2019
by
mcdruid
Committed by
Jeremy
Mar 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2996888
by mcdruid: enable compression by default with memcached extension (D7 branch)
parent
fbdbd705
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
README.txt
README.txt
+5
-3
dmemcache.inc
dmemcache.inc
+0
-1
No files found.
README.txt
View file @
d64561ba
...
...
@@ -641,18 +641,20 @@ default options (selected through performance testing). These options will be
set unless overridden in settings.php.
$conf['memcache_options'] = array(
Memcached::OPT_COMPRESSION => FALSE,
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 consistent distribution, which allows you to add/remove servers
easily
Other options you could experiment with:
+ Memcached::OPT_COMPRESSION => FALSE,
* This disables compression in the Memcached extension. This may save some
CPU cost, but can result in significantly more data being transmitted and
stored. See: https://www.drupal.org/project/memcache/issues/2958403
+ Memcached::OPT_BINARY_PROTOCOL => TRUE,
* This enables the Memcache binary protocol (only available in Memcached
1.4 and later). Note that some users have reported SLOWER performance
...
...
dmemcache.inc
View file @
d64561ba
...
...
@@ -756,7 +756,6 @@ function dmemcache_instance($bin = 'cache') {
$memcache
=
new
Memcached
;
}
$default_opts
=
array
(
Memcached
::
OPT_COMPRESSION
=>
FALSE
,
Memcached
::
OPT_DISTRIBUTION
=>
Memcached
::
DISTRIBUTION_CONSISTENT
,
);
foreach
(
$default_opts
as
$key
=>
$value
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment