• 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’);

    // 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 ImageIlari Arovuo

    (@iarovuo)

    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.