Title: delete_transient returns 0
Last modified: December 31, 2019

---

# delete_transient returns 0

 *  Resolved [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete_transient-returns-0/)
 * When your plugin was active, I experienced the error that [delete_transient](https://developer.wordpress.org/reference/functions/delete_transient/)
   returned the integer 0, while it should be strictly boolean true or false. (And
   therefore a subsequent condition failed.)
 * The reason could be that wp_cache_delete already returns a non-boolean value.
 * I don’t know if that was connected, but the transient was also not deleted.
 * Thanks

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete_transient-returns-0/#post-12284683)
 * Thanks for reporting this, Chris.
 * If you fixed it, could you send a Pull Request on GitHub so I can include it 
   in the next version?
 *  Thread Starter [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/delete_transient-returns-0/#post-12285646)
 * Sorry, I have not had time yet to fix it. I used your plugin only on a development
   machine for testing different scenarios, so it was sufficient for me to find 
   out where the issue came from.

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

The topic ‘delete_transient returns 0’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Christoph](https://wordpress.org/support/users/camthor/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/delete_transient-returns-0/#post-12285646)
 * Status: resolved