Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2010 at 22:04 UTC
Updated:
15 May 2013 at 12:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
jeremy commentedThere is no patch attached.
Comment #2
nnewton commentedThats odd, thought I'd attached it...here it is.
Comment #3
jeremy commentedLet's set sane defaults:
http://www.php.net/manual/en/memcached.constants.php
Please update this issue with details on why our defaults are chosen.
Comment #4
nnewton commentedAttaching a patch with sane defaults and documentation.
Comment #5
jeremy commentedThanks, patch committed in 7.x-1.x-dev. Still needs to be ported to 6.x-1.x-dev.
Comment #6
nnewton commentedNote, the memcached module has a significant performance regression it its current form...this patch is fine, but the PECL module its enabling may not be.
Comment #7
jeremy commentedRe-assigning to 6.x, where we need the port.
Comment #8
robertdouglass commentedHere's the rerolled patch. The D7 patch applied with fuzz.
Comment #9
robertdouglass commentedComment #10
longwaveNot sure these defaults are entirely sane, as binary protocol is only supported in memcached 1.4 and Debian stable currently ships memcached 1.2.2, which meant the default configuration gave WSOD on all pages on my server until I figured out what was going on. Or at least we should document that OPT_BINARY_PROTOCOL should be false for older versions of memcached?
Comment #11
robertdouglass commented@longwave thanks for testing. Can you propose a fix or a documentation patch (maybe mentioning your platform and experience?)
Comment #12
longwaveProposed fix attached. This switches off the binary protocol by default, as the default configuration should then work with all versions of memcached, but documents the fact it should be enabled if memcached 1.4 or above is used.
The patch also sets the default options before overriding with any changes from settings.php (rather than having to copy the defaults into settings.php, as in the previous code), conforms better to Drupal coding standards (FALSE instead of false) and fixes a minor spelling error in the docs.
Comment #13
robertdouglass commentedD7 version of the patch.
Comment #14
markpavlitski commentedLooks like this is fixed in latest 6.x-1.x and 7.x-1.x.