Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

db_cleanups

8 sites No security coverage
View on drupal.org

DB Cleanup helps Drupal sites automatically clean cache tables and watchdog (dblog) entries at configurable intervals. It is especially useful for sites running on shared or resource-restricted hosting environments.

Features

Key features include:

  • Automatically cleans watchdog (dblog) table at configurable time intervals.
  • Automatically clears cache_ tables* on a scheduled basis.
  • Optional OPTIMIZE TABLE execution after cleanup to reclaim space and improve performance.
  • Manual controls to immediately clear cache tables and watchdog entries from the UI.
  • Lightweight and cron-based, suitable for shared hosting and low-resource servers.
  • Simple configuration form integrated into the Administration → Configuration → Development section.

Use cases:

  • Drupal sites with limited database storage.
  • Shared hosting environments where database size grows quickly.
  • Sites where log tables are not cleaned frequently enough by default.
  • Developers who want predictable and controlled cleanup intervals.

Post-Installation

After installing and enabling the module:

  1. Navigate to

    Administration → Configuration → Development → Database Cleanup Settings
  2. Configure:
    • Watchdog Cleanup Interval (hours)
    • Cache Tables Cleanup Interval (hours)
    • Enable or disable Optimize tables after cleanup
  3. Save the configuration
  4. The cleanup tasks will run automatically during Drupal cron execution.
  5. Optionally, use Run Cleanup Now to manually clear cache tables and watchdog entries instantly.

No additional content types or permissions are required.

Additional Requirements

  • Drupal core (no external libraries required)
  • Uses Drupal core cron system
  • Works with core Database Logging (dblog)

Similar projects

  • Core cron & cache clear mechanisms – DB Cleanup adds configurable intervals and manual controls in one place.
  • DBLog Cleanup modules – often focus only on watchdog, while DB Cleanup also manages cache tables.
  • Performance-focused cleanup modules – DB Cleanup is intentionally lightweight and suitable for shared hosting environments.

What differentiates DB Cleanup is its simple configuration, combined cache + watchdog cleanup, and suitability for low-resource servers.

Activity

Total releases
2
First release
Dec 2025
Latest release
4 months ago
Release cadence
0 days
Stability
100% stable

Releases

Version Type Release date
1.2.0 Stable Dec 15, 2025
1.1.0 Stable Dec 15, 2025