Your homepage can look fine in a lab test and still feel sticky in wp-admin. Publish takes longer. The post list search stalls. Bulk actions time out. The culprit is often not the theme and not the CDN. It is years of post revisions, auto-drafts, trashed posts, spam comments, orphaned meta, and expired transients sitting in MySQL like unused attic junk.
Visitors never see that table growth as a banner. They feel it as slower TTFB on cache misses, heavier admin-ajax, and a site that “used to be snappy.” Front-end minify and page cache help what the browser downloads. They do not shrink dead rows. Lightify’s scheduled database cleanup counts what it will remove, lets you approve a number, sweeps on a schedule, then optimises the tables.
Lightify is the DaftPlug performance plugin. This post stays on scheduled database cleanup only. Not minify CSS/JS/HTML, not Delay JS, not Defer JS, not unused CSS removal, not page cache, not speculative loading, not lazy load, not WebP, not fonts, not self-hosting third-party assets, not the Core Web Vitals dashboard, and not emoji or bloat-disable toggles as the main topic. Those are siblings. A separate enablement may already cover minify for CSS, JavaScript, and HTML. This article is database cleanup only.
What Lightify actually ships here
Stay inside the real feature set:
- Scheduled cleanup of the junk WordPress quietly accumulates over years
- Revisions, auto-drafts, trash, spam comments, orphaned meta, and expired transients as the sweep targets
- Count first so you see concrete totals before anything is deleted
- Approve a number, not a vague promise before the destructive pass runs
- Table optimize after the sweep so MySQL can reclaim space
- Weekly schedule framing (product example: weekly at a quiet hour such as 3am) so maintenance stays predictable
This post does not invent undocumented “AI vacuum” claims, selective legal-hold revision vaults, or a phpMyAdmin replacement inside Lightify. It does not promise that every hosting plan reclaim disk the same way after OPTIMIZE. The product promise is count, approve, schedule, sweep, optimise. Stay there. Minify, Delay/Defer JS, unused CSS, page cache, speculative loading, lazy load, WebP, fonts, self-host, CWV dashboard, and emoji/bloat disable are parallel tools, not this article’s job.
Why scheduled WordPress database cleanup matters
Quiet bloat never makes the changelog. Every save can leave a revision. Auto-drafts linger. Trash sits. Spam comments remain in tables even after you “delete” them in the UI. Plugins write transients that expire in value but not always in storage. Meta rows orphan when posts disappear. There is no core red banner for “48,000 revision rows.”
Front-end performance tools do not shrink MySQL junk. Full-page cache and minify help the browser. They still leave a fat database behind every miss, every admin search, and every backup.
Backups and restores get heavier. Snapshotify and host backups pack whatever you leave in the tables. Cleaning revisions and spam before a large backup is cheaper than shipping attic junk to three clouds every night.
Admin UX is a product signal. Editors judge the site by how fast the post list feels. A lean database is part of that feeling even when the public homepage is cached.
Counted approval beats blind cron deletes. Seeing numbers first reduces the “we deleted something we still needed” failure mode. You approve a concrete total.
Sibling Lightify features solve different friction. Minify shrinks assets. Delay JS waits for interaction. Database cleanup removes rows that should not exist. Shipping all three in one untested hour makes regression hunting painful. Enable cleanup, verify counts and a first sweep, then tune asset tools on their own day.
How to run scheduled database cleanup in wp-admin
Assume Lightify is installed and you have a current backup (Snapshotify on the same Pro membership, or your host backup). Junk is still data until you are sure.
1. Decide what you are willing to remove
Walk editorial needs: do you keep long revision history for legal or collaborative editing? Are there auto-drafts you still need? Is spam truly disposable? That policy becomes your first pass. Do not run a huge sweep at lunch on a launch day.
2. Open Lightify and find database cleanup
In wp-admin, open Lightify. Locate database cleanup among the performance tools Lightify exposes alongside minify, Delay JS, page cache, and the other controls. Open the cleanup UI. Leave minify, Delay/Defer JS, unused CSS, page cache, speculative loading, lazy load, WebP, fonts, self-host, and CWV dashboard alone until the cleanup path is verified.
3. Read the counts before anything irreversible
- Check counted items: revisions, auto-drafts, trash, spam comments, orphaned meta, expired transients.
- Read the numbers. If a total looks wrong (for example drafts you still need), adjust what is included.
- Approve the concrete count you are willing to remove. You approve a number, not a promise.
If counts are zero on a brand-new site, you may not need an immediate sweep. Still turn on the schedule so future junk does not pile up unnoticed.
4. Run an initial sweep when the backlog is huge
A five-year content site may need one big pass before the weekly schedule only maintains a thin layer. Run that initial sweep after backup. Let table optimisation finish. Do not stack a migration or plugin mass-update on top of it.
5. Turn on the weekly schedule
Enable the schedule Lightify exposes for ongoing cleanup. Weekly at a quiet hour (the product example uses 3am) is a sane default for most brochure and content sites. Stores with heavy comment spam may want to watch the first few weekly runs more closely. Document the window in your runbook so nobody schedules a deploy inside the same hour by accident.
6. Confirm admin and front still behave
Spot-check a few posts, comments, and a search. Confirm spam is gone and intentional drafts you kept are still there. Confirm a public page still renders. If something looks wrong, restore from the backup you took before the sweep. Do not invent undocumented Lightify “undelete revision vault” features that are not on the product page.
7. Document the enablement for the next teammate
Write one line in your internal runbook: “Lightify database cleanup enabled on [date]. First sweep approved [counts]. Weekly schedule [window]. Minify and page cache are separate.” Cleanup gets blamed when someone expects revisions that policy already deleted.
Who this is for
Mature content sites with years of revisions and trash that never got emptied.
Comment-heavy blogs where spam tables grow even with filters.
WooCommerce stores whose postmeta and options tables collect plugin transient noise over time.
Membership and LMS sites with heavy admin use where editor lag is obvious.
Agencies handing sites to clients who will never open phpMyAdmin on purpose.
This is less urgent for brand-new installs with almost no content history, though enabling the schedule early still prevents the attic from filling. Pair cleanup with minify and cache work when you are ready. Start by removing what should not be there.
What good looks like
- Counts appear before delete, and you approved a concrete total.
- A first sweep removes the backlog you chose without deleting drafts you intentionally kept.
- Table optimisation completes after the sweep.
- The weekly schedule runs in a quiet window and keeps new junk thin.
- Admin search and publish feel less sticky than before on a previously bloated site.
- Minify, Delay JS, unused CSS, and page cache remain optional siblings, not confused with database cleanup.
- Support stops guessing whether “the site feels slow” means assets, cache, or a 1.4 GB posts table.
If something important disappeared, restore from backup, tighten what the sweep includes, and re-run with a smaller approved count. Do not keep sweeping blindly.
Pitfalls (the ones that bite)
Skipping the backup. Counted cleanup is still destructive. Snapshot first.
Confusing database cleanup with minify or page cache. Those shrink or cache front-end work. They do not remove revision rows. Debugging one while expecting the other wastes a day.
Deleting revision history you still need. Legal and editorial workflows sometimes require long histories. Adjust inclusions before you approve a huge revision count.
Running the first huge sweep at peak traffic. Quiet hours exist for a reason. Optimise can lock tables briefly depending on engine and host.
Enabling every Lightify toggle with cleanup. If cleanup, minify, Delay JS, and page cache all land together, you cannot tell which change moved TTFB or broke a script. Enable cleanup, verify, then add the next piece.
Expecting disk charts to drop instantly on every host. Some environments reclaim space on their own timeline after OPTIMIZE. Judge success by counts gone and admin feel, then confirm host metrics.
Forgetting the schedule after a one-off cleanup. One big pass without a weekly follow-up just restarts the attic fill. Turn the schedule on.
Practical checklist before you call it done
- Take a backup (Snapshotify or host).
- Confirm Lightify is installed.
- Open database cleanup and read counts for revisions, auto-drafts, trash, spam, orphaned meta, and expired transients.
- Leave minify, Delay/Defer JS, unused CSS, page cache, speculative loading, lazy load, WebP, fonts, self-host, and CWV dashboard alone for this pass.
- Approve a concrete count you are willing to remove.
- Run an initial sweep if the backlog is large; let table optimisation finish.
- Enable the weekly schedule in a quiet window.
- Spot-check posts, comments, search, and a public page.
- Write the enablement date, approved counts, and schedule window in the team runbook.
- Re-check counts after the first scheduled run.
- Only then consider enabling other Lightify features that change front-end assets or cache.
How cleanup fits the rest of Lightify
Database cleanup removes rows that should not exist. Minify and Delay JS change what the browser downloads. Page cache changes what PHP must rebuild on a hit. Those jobs can all live in Lightify, but they fail differently and they deserve different verification days.
A practical order for a bloated mature site is backup, counted cleanup, confirm admin feel, then minify for transfer size, then Delay JS or unused CSS if scripts still hurt interaction metrics, then page cache once HTML is trustworthy. If you reverse that order, you will tune cache while MySQL still drags every miss through attic junk. Cleanup first when the tables are the obvious attic. Asset tools first when the database is already lean and the waterfall is the complaint.
Keep emoji and bloat-disable toggles as companion switches when they match your stack. They cut request noise. They do not replace the revision and spam schedule that is the point of this post.
Takeaway
Years of revisions, spam, trash, and expired transients slow WordPress quietly. Lightify’s scheduled database cleanup counts first, lets you approve a number, sweeps on a schedule, and optimises tables afterward. It is not minify, not Delay JS, and not page cache. It is the maintenance path for junk that should not live in MySQL forever.
Lightify handles database cleanup alongside the rest of the performance stack, without asking you to live in phpMyAdmin. Enable it once. Approve real counts. Keep sibling performance features as separate enablement work. For shrinking CSS, JavaScript, and HTML transfer size after the database is leaner, use the related minify guide when you are ready.
One Pro membership unlocks Lightify plus Progressify, Generatify, Rankify, and Snapshotify. New Pro plugins join existing memberships. Plans differ by site count only (Pro $37.99 for 1 site, Pro Plus $74.99 for 5, Pro Max $138.99 for 100), with a 14-day money-back guarantee. See pricing when database attic junk should leave the “maybe next year” list.
Take the backup. Read the counts. Approve the number. When the first weekly run keeps revisions and spam thin without drama, the database finally stops taxing every admin click for history you already decided not to keep.


