Closed (fixed)
Project:
Cache Router
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2011 at 07:31 UTC
Updated:
7 Dec 2012 at 11:00 UTC
Hi,
I'm using this great module only with apc. I'm pointing "only" because I wonder if I can add memcache acceleration too.
Since apc and memcache work in a different manner, can be a good idea (a reasonable one) using them together?
If the answer is yes, how should I configure settings.php to achieve these two types of acceleration?
Comments
Comment #1
aze2010 commentedsubscribing...do andybody knows that?
Comment #2
thedavidmeister commentedJust configure each "bin" you want to point to different caches.
I use APC for the op-code caching and memcache for the Drupal cache bin caching at the same time.
Just set the "engine" key of the bin to either "memcache" or "apc" as required.
My (limited) testing shows that memcache is a little faster than APC for Drupal cache bins, so that's why I've set myself up this way.
Comment #4
raulmuroc commented@thedavidmeister, could youo include a brief guide to set up both modules together?
It would be really useful.
Thank you.
Comment #5
thedavidmeister commentedStep 1: Install APC and configure it in php.ini
Step 2: Install memcache, configure it in php.ini and get at least one memcache daemon running on a local port (like 11211)
Step 3: Install Cache Router
Step 4: In the configuration of Cache Router do something like this example which puts the cache_views table in APC and everything else in memcache (adapted from the project front page):
PS - Don't do exactly this, keep cache_form at least out of memcache as it's not really a "cache" that memcache can drop when it feels like. Stick it in file caching or something..