hey
i've coded this for memcache:
Memcache settings:
/**
* Cache settings: Memcache API (memcache)
*
* Cache API, running with memcache engine.
*/
$module_memcache_enabled = FALSE; // change to TRUE to enable
$module_memcache_inc = './sites/all/modules/performance/memcache/memcache.inc';
$module_memcache_session_inc = './sites/all/modules/performance/memcache/memcache-session.inc';
if ( $module_memcache_enabled == TRUE ) {
if ( file_exists($module_memcache_inc) ) {
$conf['cache_inc'] = $module_memcache_inc;
$conf['session_inc'] = $module_memcache_session_inc;
$conf['memcache_servers'] = array(
'127.0.0.1:11211' => 'default',
);
$conf['memcache_bins'] = array(
'cache' => 'default',
'cache_block' => 'default',
'cache_bootstrap' => 'default',
'cache_content' => 'default',
'cache_filter' => 'default',
'cache_form' => 'default',
'cache_menu' => 'default',
'cache_page' => 'default',
'cache_pathdst' => 'default',
'cache_pathsrc' => 'default',
'cache_uc_price' => 'default',
'cache_update' => 'default',
'cache_views' => 'default',
'cache_views_data' => 'default',
'session' => 'default',
'users' => 'default',
);
}
}
i've also coded a snippet for Auth Cache module. it has been submitted to it's issue queue.
Auth Cache settings:
/**
* Cache settings: Auth Cache (authcache)
*
* Logged-in user backend for Cache Router and Memcache API.
*/
$module_authcache_enabled = TRUE; // change to TRUE to enable
$module_authcache_inc = './sites/all/modules/performance/authcache/authcache.inc';
if ( $module_authcache_enabled == TRUE ) {
if ( file_exists($module_authcache_inc) ) {
if ( $module_cacherouter_enabled == TRUE ) {
$conf['cache_inc_via_authcache'] = $module_authcache_inc;
} elseif ( $module_memcache_enabled == TRUE ) {
$conf['cache_inc'] = $module_authcache_inc;
}
}
}
Comments
Comment #1
lpalgarvio commentedchanged issue descriptions
Comment #2
lpalgarvio commentedComment #3
jeffsheltren commentedI'm working on improving the documentation in other issues which covers most of what you have in your memcache snippet. The other stuff, as you said, probably is better included with the auth cache module. I'm closing this as a duplicate ( know, yours was here first!) to help clean up this issue queue, follow up in http://drupal.org/node/1536222 if needed.