Alternative Database Cache

This project is not covered by Drupal’s security advisory policy.

The Alternative Database Cache module is a drop-in replacement for Drupal Core's default cache implementation. Its goal is to fix long-standing problems with Drupal's core caching mechanism.


  Drupal Core ADBC
On cron, w/out minimum lifetime Cache is wiped on every cron run Cache is wiped at a configurable interval (default: once per 24hrs).
On cron, w/minimum lifetime set Cron deletes all cache entries no more than once per cache_lifetime. Cron deletes only cache entries older than cache_lifetime at a configurable interval.
On content change, w/out minimum lifetime Page/block caches completely cleared every time content is saved.
On content change, w/minimum lifetime set If page/block caches were last cleared more than cache_lifetime ago, both bins are emptied. Otherwise, no action is taken. Page/block cache entries older than cache_lifetime are deleted.


  1. Enable this module like you would any module, whether at /admin/modules or via drush.
  2. In your settings.php file, you'll need to add the following lines to force Drupal to use the ADBC backend.
     * ADBC settings.
    $conf['cache_backends'][] = 'sites/all/modules/adbc/';
    $conf['cache_default_class'] = 'AlternativeDrupalDatabaseCache';
  3. You may need to change the path to depending on how your site's structure is set up.
  4. Once enabled, the module exposes a new "Cache garbage collection frequency" setting in the performance settings page. It defaults to 24 hours, but you may want to set this lower or higher depending on your needs.

Additional Reading

Alternative Database Cache项目的Drush安装命令:复制到剪贴板



7.x-1.0-beta1tar.gz (10.62 KB) | zip (11.77 KB)2012年7月29日发布说明简 | 繁 | 更多


7.x-1.x-devtar.gz (11.6 KB) | zip (13.1 KB)2013年9月30日发布说明简 | 繁 | 更多