Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Configuring the Retention Window


The retention window keeps your most recent data safe from cleanup. This guide explains what it does, why it shapes both your cleanups and your health score, and how to change it.


The short version

The retention window is a “keep last X days” setting. Anything newer than the window is protected: cleanup won’t delete it, even if you tick its box. Out of the box, the window is 7 days.

Think of it as a safety net. It means a routine cleanup never wipes out the revision you saved this morning or the comment someone trashed yesterday, while still clearing the older buildup you don’t need.

What the window protects

The window applies to time-based items, the ones where “how old is it” actually matters, such as:

  • Post revisions
  • Trashed posts and comments
  • Other dated cleanup items

Anything newer than your window simply isn’t counted as removable, and it’s skipped during cleanup.

Why it changes your health score too

The health score is built to reflect what cleanup would actually remove. So it uses the same retention window: recent items inside the window don’t count as clutter, because cleanup wouldn’t touch them yet.

That keeps the score honest. If the score counted data that cleanup is busy protecting, you could clear everything you possibly could and still see a lower number than you’d earned.

Changing the window

  1. Open DB Optimizer and go to the Settings area.
  2. Find the retention setting (“keep last X days”).
  3. Type in the number of days you want to protect.
  4. Save.

Your new window kicks in the next time you view counts, run a cleanup, or refresh the health score.

Picking a number

If you want to…Set the window to…
Play it safe and keep a recent recovery cushion (what we’d suggest)7 days (the default)
Hold on to more history before anything goes14 to 30 days
Clean as hard as possibleA low number, like 1 day

Worth knowing: A bigger window protects more data but leaves more clutter behind, which can hold your health score down. A smaller window cleans more aggressively but gives you a shorter recovery cushion. The 7-day default strikes a good balance for most sites.


Was this article helpful?


Related Articles

Don't Let Another Day Pass Unprotected

Every hour without proper WordPress backups puts your site at risk • Every delayed WordPress migration costs you performance and growth

Get Duplicator Now
Duplicator Plugin

Wait! Don't miss your
exclusive deal!

As a customer, you get 60% OFF

Try Duplicator free on your site — see why 1.5M+ WordPress pros trust us. But don't wait — this exclusive 60% discount is only available for a limited time.

or
Get 60% Off Duplicator Pro Now →