Hi
I just installed 5.x-1.x-dev, but don't see any reduction in SQL queries etc. It appears that a new instance of Memcache is being created for every cache query, possibly because of the following code in memcache.inc :
// Link all the servers to this cluster.
foreach ($memcache_servers as $s => $c) {
if ($c == $cluster) {
The problem is that $memcache_servers appears to contain arrays, rather than something that can be compared to $cluster.
$memcache_servers = Array
(
[default] => Array
(
[localhost] => Array
(
[0] => 11211
)
)
)
This same missmatch happens again a few lines later, preventing the update which would referencfe the new Memcache.
Of course, it's more likely to be user error on my part! In that case, I apologise in advance.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | memcache.inc_.patch | 1.82 KB | lyricnz |
Comments
Comment #1
lyricnz commentedPatch to fix iteration of $memcache_servers. Also disables "Merge overrides from memcache.module".
Comment #2
robertdouglass commentedSorry, this is a documentation error. I'm changing the way the configuration arrays are structured, so if you tried this with the old arrays it would bomb.
Try with arrays like this (or no configuration arrays whatsoever if you want to just run localhost:11211):
The structure of memcache_servers is host:port => cluster. The structure of memcache_bins is bin => cluster. Certain defaults are assumed: Cluster: 'default', bin 'cache'. You should always have an entry for them in both the memcache_servers and memcache_bins arrays.
Comment #3
lyricnz commentedPlease update README.txt - it's the only information endusers have about how to configure their memcache. Is a configuration page likely at some stage?
Comment #4
nicholasthompsonI'm working on one right now.
Comment #5
lyricnz commentedPlease update README.txt - it's the only information endusers have about how to configure their memcache. Is a configuration page likely at some stage?
Comment #6
lyricnz commentedPlease update README.txt - it's the only information endusers have about how to configure their memcache. Is a configuration page likely at some stage?
Update: README.txt has been significantly updated
Comment #7
nicholasthompsonConfig page is very likely very soon.
Comment #8
(not verified) commented