Title: Plugin does not clean transients
Last modified: February 28, 2025

---

# Plugin does not clean transients

 *  [Ilari Arovuo](https://wordpress.org/support/users/iarovuo/)
 * (@iarovuo)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-clean-transients/)
 * MWP Plugin does not clean up after plugin deletion.
   It leaves transient into 
   database, hosting the old connections, without automatic transient deletion by
   WP – NO EXPIRY!!!
 * SO YOU MUST CLEAN THE TRANSIENT IN CODE – if you did not set it auto expire!!!
 * Code snippet edit for functions.php:
 * function mwp_uninstall()
   {delete_option(‘mwp_core_autoupdate’);delete_option(‘
   mwp_recovering’);delete_option(‘mwp_container_parameters’);delete_option(‘mwp_container_site_parameters’);
 *     ```wp-block-code
       // Ensure transient session data is deleted on uninstall
       delete_site_transient('mwp_sessions');
       ```
   
 * …
 * PAY ATTENTION TO LAST LINE!
   DUE TO THIS MOST WEBSITES CANNOT RECONNECT, even 
   after reinstallation, as it leaves garbage behind! Shame on developers!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Ilari Arovuo](https://wordpress.org/support/users/iarovuo/)
 * (@iarovuo)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-clean-transients/#post-18335461)
 * pay attention to the fact, that many websites have MEMCACHED
   and one disables/
   enables memcache on the fly, the plugin cannot read the transient anymore!Also,
   you would not know if the transient was stored in memcache or options table.Now
   we had transients in BOTH, as the plugin does not cleanup, nor does it consider
   memcache.… and then, WHY are you using transient for data, which you are not 
   auto expiring?Deleting or not able to access transient should be no problem, 
   by the design and purpose of transients.If you need to save data persistently,
   you should NOT use transient, but options table!!! – or a custom table.

Viewing 1 replies (of 1 total)

The topic ‘Plugin does not clean transients’ is closed to new replies.

 * ![](https://ps.w.org/worker/assets/icon.svg?rev=1015191)
 * [ManageWP Worker](https://wordpress.org/plugins/worker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/worker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/worker/)
 * [Active Topics](https://wordpress.org/support/plugin/worker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/worker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/worker/reviews/)

## Tags

 * [disconnect](https://wordpress.org/support/topic-tag/disconnect/)
 * [memcache](https://wordpress.org/support/topic-tag/memcache/)
 * [reconnect](https://wordpress.org/support/topic-tag/reconnect/)
 * [transient](https://wordpress.org/support/topic-tag/transient/)

 * 1 reply
 * 1 participant
 * Last reply from: [Ilari Arovuo](https://wordpress.org/support/users/iarovuo/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-does-not-clean-transients/#post-18335461)
 * Status: not resolved