Title: Remove transients from database after enabling object cache?
Last modified: November 22, 2022

---

# Remove transients from database after enabling object cache?

 *  Resolved [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/remove-transients-from-database-after-enabling-object-cache/)
 * Hi there
 * I have unchecked “Store transients in database” as I believe this is better for
   performance than not (?) however I have noticed there are still transients in
   the database. One of them has an expiry date of yesterday.
 * Should these be garbage collected automatically, or should I delete them?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/remove-transients-from-database-after-enabling-object-cache/#post-16224433)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Thank you for your feedback.
    As you can see in the description: Use that to 
   store transients in the database even when an external cache is used. That allows
   transient values to survive object cache cleaning/expiration. When have you disabled
   this option? Before or after enabling the OC?
 * Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/remove-transients-from-database-after-enabling-object-cache/#post-16224759)
 * I would have transients already stored in the database before I installed and
   activated W3 Total Cache and the object cache. My understanding was that if this
   checkbox is unchecked, the database would not be used for transients? In this
   case should I manually remove them from the database as they don’t appear to 
   be garbage collected.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/remove-transients-from-database-after-enabling-object-cache/#post-16227748)
 * Hello [@jamieburchell](https://wordpress.org/support/users/jamieburchell/)
 * Yes, you should remove them manually and keep the option disabled in this case.
 * Thanks!
 *  Thread Starter [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * (@jamieburchell)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/remove-transients-from-database-after-enabling-object-cache/#post-16227768)
 * Thanks [@vmarko](https://wordpress.org/support/users/vmarko/). I ran `wp transient
   delete --all` which removed them from the database.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove transients from database after enabling object cache?’ is closed
to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jamie Burchell](https://wordpress.org/support/users/jamieburchell/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/remove-transients-from-database-after-enabling-object-cache/#post-16227768)
 * Status: resolved