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
Comment #1
deverman commentedYes 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...
Comment #2
jeremy commentedTo move all your caches from the database to memcache, you only need to add one line to your settings.php file:
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.
Comment #3
vacilando commentedThis is very helpful, thanks for the clarification, Jeremy.
Comment #5
deverman commentedFrom what I found changing my configuration is that you still need to specify the default bin.