WordPress
Clean WordPress Transients
Clear out expired and orphaned transient data bloating your WordPress database.
The Problem
Your WordPress database has grown far larger than your actual content would suggest, and a big part of it is often expired "transients" — temporary cached data that was supposed to self-delete but didn't.
About this problem
Transients are WordPress's way of caching temporary data (API responses, computed values, plugin data) with an expiry time — in theory, WordPress cleans them up automatically once they expire, but in practice many plugins create transients that never expire properly, or the clean-up process itself gets skipped on sites with infrequent traffic (since it's triggered by page visits).
Over months or years, this can genuinely add thousands of rows of dead weight to the wp_options table, slowing down queries that have to scan past all of it.
What's Included
- Identifying how much of your database bloat is actually expired/orphaned transients
- Safely removing expired transients without touching active cached data still in use
- Checking for a specific plugin creating excessive orphaned transients, if one stands out
- Before/after comparison of database size
What's NOT Included
- General database optimisation beyond transients (see the dedicated database cleanup service for that)
- Fixing a plugin that's misbehaving beyond flagging it as the likely cause
- Ongoing automatic transient cleanup (can be set up separately if you want it recurring)
How It Works
- Query the wp_options table to measure how many transient entries exist and how many are expired or orphaned.
- Identify whether a specific plugin accounts for a disproportionate share of the bloat.
- Safely delete expired and orphaned transients, leaving active, in-use cached data untouched.
- Optimise the wp_options table after cleanup to reclaim the freed space.
- Compare database size before and after to confirm a measurable improvement.
In practice: you buy the service, send over whatever access or details the job needs, I investigate and do the work, and you confirm it's resolved before we call it done.
Frequently Asked Questions
- What are WordPress transients and why do they build up?
- Transients are temporary cached data with an expiry time, but the automatic cleanup only runs when WordPress thinks to check, which can mean thousands of expired entries pile up unnoticed, especially on lower-traffic sites.
- Is it safe to delete transients from my WordPress database?
- Yes, expired and orphaned ones specifically — WordPress will simply regenerate any transient it actually still needs, so nothing functional is lost by removing stale ones.
- Will cleaning transients make my site faster?
- It can help, especially if the wp_options table had grown very large, since that table is queried on almost every page load.
- Can a plugin cause excessive transient buildup?
- Yes, poorly coded plugins sometimes create transients without proper expiry handling, which is checked for and flagged if one plugin is clearly the main contributor.
- Will I need this done again in the future?
- Possibly, if the same plugin behaviour continues — it's a maintenance task rather than a permanent one-off fix, similar to general database housekeeping.