I've got warnings and errors upon the installation of newer version 7.x-1.1 of the module. It appears that PECL Memcache 3.0.5 is unsupported now, as per the status report. However its newer packaged versions may not be available yet for some operating systems. In my case I have to resort back to 7x-1.0 to keep Memcache running. Could PECL Memcache 3.0.5 be supported in 7.x-1.1? or at least the requirement should be stated for 7.x-1.1.
Comments
Comment #1
jeremy commentedPlease see the documentation -- 3.0.6+ has always been a requirement in the 7.x branch, it's just that in 7.x-1.1 we're not only documenting it in the README we're also noting it on the Status page:
http://cgit.drupalcode.org/memcache/tree/README.txt?id=refs/heads;id2=7....
Rolling back to 7.x-1.0 does not fix anything, it's just that we didn't issue a warning in that earlier release. You should upgrade your PECL extension, otherwise your cache may not flush correctly at all times.
3.0.5 was released in October of 2010 ( http://pecl.php.net/package/memcache ) -- please upgrade.
Comment #2
almc commentedSorry, missed to read the readme notice on library versions. Unfortunately, there is no stable packaged PECL memcache > 3.0.5 or PECL memcached > 1.0.0 for the operating system in use in my case. What are the implications of using the module with PECL memcache 3.0.5? (especially in terms of possible impact visible to end user?)
Comment #3
jeremy commentedWith <3.0.6 (released in April of 2011) there are reported cases where wildcard flushes will not succeed correctly -- this can result in stale content being displayed to the end user. Older versions of the PECL package have a wide variety of additional problems depending on the release.
You may want to consider alternative methods of installing the latest version, 3.0.8:
http://us3.php.net/manual/en/memcache.installation.php
Comment #4
almc commentedThanks for the insights. As far as I understand, in the lack of a stable packaged later version of the library with my OS, I basically have two options: to compile the later version of library or use some 'outside' Linux repository that has a later version of the library. As both options can be a bit risky, I would probably stick with 3.0.5 until the recommended upgrade of the library is provided for the OS, taking some risk in Drupal (I don't have wildcard flushes in the code currently).
Comment #5
jeremy commentedJust be aware that wildcard flushes are part of Drupal's core functionality, so it's not something you'd have to add via contrib. Of course, if you're not experiencing problems, hopefully that will continue!
I encourage you to ask your OS provider to update to a more recent release!
Comment #6
almc commentedOk, thank you again, if the core may contribute to the issue appearance then I will certainly need to expedite the upgrade of the library (maybe together with PHP) ...
Comment #8
lostchord commentedOn Centos - which does not have the latest memcache pecl package at the time of writing - you can upgrade from pecl (assuming you have pear installed) if you install:
gcc
php-devel
zlib-devel
re2c
and then issue the command:
pear upgrade pecl/memcacheAccept all the defaults.
Comment #9
bdupls commentedOn Drupal status page I got PECL Memcache version 2.2.7 is unsupported. Please update to 3.0.6 or newer.
I then copied the url from memcache on the version I required.
cd /usr/local/src
wget http://memcached.googlecode.com/files/memcached-[versionrequired]
tar xvzf memcached-[versionrequired].tar.gz
cd memcached-[versionrequired]
Continued with the rest of the memcache installation and Voila!
Posting for others that may have a similar issue.
Comment #10
design4effect commentedInstead of 'pecl install memcache'
use 'pecl install memcache-beta'
Comment #11
jminker commentedThanks for this easy fix design4effect! :)
Jim
Comment #12
ponies'pecl install memcache-beta' and an apache restart did the trick for me.
Comment #13
Khalid S commented#10 works perfect!
Thanks design4effect!
Comment #14
alexandreracine commentedThis did it for me on Ubuntu 14.04
Upgrading PECL Memcache
http://henokmikre.com/blog/2015/08/memcache
Comment #15
taiger commentedHi @ponies!
'pecl install memcache-beta' and an apache restart worked for for me too !!!
Comment #16
Funksmaname commented#10 worked great for me too... thanks!