Project:Memcache API and Integration
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,

Testing this module, I am confused about (at least) one thing - cannot find the answer anywhere in the online and module documentation and blogs.

I simply want to use memcache instead of all Drupal caches.
Is it enough to specify 'memcache_bins' => array('cache' => 'default'),. Or does that just memcache the 'cache' table and in fact what I should be doing is listing all caches ('cache_menu', 'cache_filter', etc.) if I want them to go to the memory?

I did clear all Drupal database cache tables while memcache was running and indeed, none of the MySQL db cache tables were filling up. But I don't know whether it means
a) all cache tables are memcached as I want
or
b) only 'cache' is memcached, the other ones are not cached at all now

Comments

#1

Yes I am also not clear I think what should be done is to set up a seperate bin for each cache table but there is no clear tutorial on this. What I found so far is these two links:

http://www.lullabot.com/articles/setup-memcached-mamp-sandbox-environment

http://2bits.com/articles/configuring-drupal-with-multiple-bins-memcache...

#2

Status:active» fixed

To move all your caches from the database to memcache, you only need to add one line to your settings.php file:

$conf['cache_inc'] = './sites/all/modules/memcache/memcache.inc';

Prior to 6.x-1.5 it was critical you also set up a few bins for things to work properly, but in 1.5+ this is no longer a requirement.

#3

This is very helpful, thanks for the clarification, Jeremy.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#5

From what I found changing my configuration is that you still need to specify the default bin.

nobody click here