Closed (won't fix)
Project:
Memcache API and Integration
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2008 at 11:28 UTC
Updated:
28 Mar 2011 at 15:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
hound commentedJust wondering - when I enable memcached and apply your patch to 5.14, I have a whitescreen issue, which displays this error if I turn on verbose PHP:
on a box that is running Suhosin-hardened Apache and also Suhosin-hardened PHP5 (as installed from the Ubuntu 8.04 repos.) It occurs to me that maybe memcached does not play nicely with Suhosin.
See this other thread for more details.
Any comments or hints are welcome. This is driving me bats.
Comment #2
robertdouglass commentedA patch I received via email.
Comment #3
svenb commentedSome notes to the "memcache-5.x-1.10.patch" above...
After installing the 5.x-1.10 it seems like all objects stored with CACHE_PERMANENT (expire = 0) were always evaluated as expired. So I fixed the condition in line 75 of "dmemcache.inc" to handle that correctly. I noticed a similar behavior for the CACHE_TEMPORARY (expire = -1), which leads me to move a few lines of code in "memcache.inc" and "memcache.db.inc". Now the "-1" gets replaced by the configured cache lifetime.
While analyzing the issues I turned on the memcache statistics and it didn't show the headlines (Get, Set, Hit, ...). Quick fix in line 245 of "memcache_admin.module" should fix that.
Hope that helps.
Comment #4
plan9 commentedThanks for the above patch. Without it I was unable to configure blocks settings for multiple themes. I seemed to be getting stale data - with the block preview for each theme being stuck on the default theme. I also had a few other glitches with memcache API installed - mostly seemingly to do with admin operations being cached.
Comment #5
plan9 commentedI've just noticed that my PECL memcache library 2.1.2 was below the recommended version stated in the 5.x install read me text: 2.2.1. I used the install procedure documented here: http://www.lullabot.com/articles/how-install-memcache-debian-etch which links to version 2.1.2
Although the patch seemed to fix my issues - the out of date PECL could explain the glitchy behaviour I described above.
Comment #6
plan9 commentedActually - after updating PECL memcache library the behaviour I mentioned previously: not being unable to configure blocks settings for multiple themes persists.
The patch seems to fix it.
Comment #7
catchMarking 5.x issues won't fix since that branch is no longer supported.