Fast cache
Categories
Component ID
2258997
Component name
Fast cache
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
1118
Component created
Component changed
Component body
Looking for a co-maintainer - contact beejeebus if you're interested!
Fasterer caching on multi-webheaded Drupal installs. This module will try to get cache items from a fast cache (probably local, like APC), then fallback to a central, consistent cache. Local cache items are only used if they are newer than the last write to the central cache bin they are in front of.
Ideally your fast cache will be APCu, and your central cache will be Memcache or Redis
By default, this module will put APCu in front of Drupal's database caching. Put this in your settings.php to get going:
// Change the 'cache_backends' path if you installed schrodicache somewhere other
// than 'sites/all/modules'.
$conf['cache_backends'][] = 'sites/all/modules/schrodicache/schrodicache_cache.inc';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['cache_default_class'] = 'SchrodiCacheCache';
// Change this to something unique to your site.
$conf['schrodicache']['apc_prefix'] = 'YOUR_SITE_PREFIX';
To specify a different central cache, set $conf['schrodicache']['consistent_backend'] like this:
// This example will use Memcache as the central cache.
$conf['cache_backends'][] = 'sites/all/modules/schrodicache/schrodicache_cache.inc';
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['schrodicache']['consistent_backend'] = 'MemCacheDrupal';
$conf['cache_default_class'] = 'SchrodiCacheCache';
// Change this to something unique to your site.
$conf['schrodicache']['apc_prefix'] = 'YOUR_SITE_PREFIX';
Thanks alexpott for the name :-)
