Latest version 2.7.6 available

Automatic Database Cleanup

 

What It Does

The Automatic Database Cleanup module works like a self-cleaning system for your website's database. Just as you might set a vacuum cleaner to run automatically on a schedule, this module regularly removes unnecessary data from your website's storage to keep it running smoothly.

How It Works

Set It and Forget It

Once you enable this feature, it runs automatically in the background without requiring any manual intervention. You simply choose how often you want it to clean:

  • Weekly - Runs every 7 days
  • Every 2 Weeks - Runs every 14 days
  • Monthly - Runs every 30 days

The system uses WordPress's built-in scheduling system (called CRON) to run the cleanup at the chosen interval, so you don't need to remember to do it yourself.

What Gets Cleaned

The module safely removes several types of unnecessary data:

  1. Expired Temporary Data - Removes old cache files and temporary data that plugins create but no longer need

  2. Old Action Logs - Cleans up records of completed tasks from the Action Scheduler (a system WordPress uses for background jobs)

  3. Spam and Trash Comments - Deletes comments marked as spam or moved to trash

  4. Orphaned Metadata - Removes data that's no longer connected to any content (like information about deleted posts or users)

  5. Old Scheduled Tasks - Cleans up outdated scheduled jobs that are no longer relevant

  6. Expired Transients - Removes temporary settings and data that have passed their expiration date

Why It's Useful

Saves Server Resources

By regularly removing unnecessary data, your database stays smaller and more efficient. This is like regularly cleaning out your closet - the less clutter you have, the easier it is to find what you need and the less space you waste.

Faster Page Loading

A clean database means your website can find and display content more quickly. When visitors browse your site, especially pages with many posts or products, they'll experience faster loading times and a more responsive website.

Prevents Problems Over Time

Without regular cleanup, databases can become bloated with old, unnecessary data. This can slow down your website and even cause errors. Automatic cleanup prevents these problems before they start.

Safe and Reliable

The module is designed to only remove data that is safe to delete. It never touches your important content, settings, or user data. Each cleanup operation is logged, so you can see what was removed and when.

How to Use

  1. Go to the Automatic Database Cleanup page in your plugin settings
  2. Check the box to enable automatic cleanup
  3. Choose how often you want it to run (weekly, every 2 weeks, or monthly)
  4. Save your settings

That's it! The system will now automatically clean your database according to your chosen schedule. You can check the CRON Tasks page to see when the next cleanup is scheduled to run.

What It Doesn't Do

  • It doesn't delete your posts, pages, or products
  • It doesn't remove your settings or configurations
  • It doesn't affect your users or their data
  • It doesn't delete active or important scheduled tasks
  • It doesn't remove data that might be needed by your plugins or themes

The module is designed to be completely safe - it only removes data that is clearly unnecessary and won't affect your website's functionality.

 
 
 

 

All rights reserved. 2025