Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2008 at 10:00 UTC
Updated:
31 Dec 2008 at 03:34 UTC
I'm configuring like:
if ($_SERVER["HTTP_USER_AGENT"] != "") {
$url = parse_url($db_url);
$path = substr($url["path"], 1);
$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
'memcache_key_prefix' => $path,
);
}
Sense of the if ($_SERVER["HTTP_USER_AGENT"] != "") is to detect "drush". Otherwise "drush" and "memcache" can't be used together.
The 'memcache_key_prefix' => $path names the prefix to the current database for uniqueness.
Comments
Comment #1
joe-b commentedMy settingsp.php file $conf is
… but when I set the 'memcache_servers' value I get a
and
Any ideas what might be causing this?
Comment #2
joe-b commentedHmm, I think it's my error my end. Setting the server as localhost is fine, but by IP address of memcache server not - must be my server config. Apologies.
Comment #3
jvandyk commented