• Nova

    (@big-dreams-theory)


    Hi
    any plan to add an option to separate transition with an expiration date and transition which have not and allow to delete transient with an expiration date only ?
    That’s really a must have feature (it is on all optimize plugin out there)

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Hmm, but if a transient has an expiry date, it should automatically delete itself?

    Thread Starter Nova

    (@big-dreams-theory)

    I just started developing a new site (not on line, just few customization) an it already has expired transients (that do not delete themselves) and transients with expiration time (that just turn in the end into “expired transients” which remains until they are delete by plugin like yours.

    Also sometimes, some plugins create problems (for exemple the famous plugin wordfence is right now giving php errors in dashboard after i uninstalled plugins and these errors won’t go until i delete transients with expiration date only (they then recreate themelves) only.

    It gives much more flexibility and control over what we’re doing and prevent deleting by mistake the wrong transients.

    One plugin that does that just fine is “transients manager” (avaiable here) well it misses the ability to select individual transients but these things are generally include in pro versions.

    Thanks

    p.s: a more modern design for your plugin would be awesome too

    Plugin Author Lester Chan

    (@gamerz)

    Hmm, because my plugin is designed to delete everything as much as possible rather than giving the option to choose.

    So there can be only 1 way which is to delete only expired transients instead of all transients. Not too sure if there is what users want.

    For my use case, I am using cache, so all the transients go into Redis/Memcached, so it expires properly and hence it will not get removed by WP-Sweep as it only reads from your DB.

    Thread Starter Nova

    (@big-dreams-theory)

    that would be a better idea, as, as my aware, the only transients that never expires are of wordpress such as wordpress update theme, plugin updates transients etc. and should not be deleted.

    Changing it for “delete expired transients only” give more security to not delete transients that should not be deleted

    Plugin Author Lester Chan

    (@gamerz)

    But even if transients gets deleted, it will be regenerate, so I think that is still ok. Unless you have a concern when it comes to regenerating transients?

    Thread Starter Nova

    (@big-dreams-theory)

    Are you sure it regenerates ? I never deleted them, so i have no idea (i know that those with expired duration, as far as i know, do regenerate)
    The thing is all plugin says “use with caution” so it’s kinda scary and make us doubt that if delete it will regenerate.

    Plugin Author Lester Chan

    (@gamerz)

    It will, transients are temp storage, so if it is missing, it will be generated.

    Thread Starter Nova

    (@big-dreams-theory)

    Ok, thanks for the clarification.
    I still believe that, as some transients are never supposed to expire (and so never supposed to be deleted), allowing to delete only expired transients (or better expired and/or with an expiration date) and not those that never expires make much more sense, don’t you think ?

    Plugin Author Lester Chan

    (@gamerz)

    All transients expire =) https://codex.ww.wp.xz.cn/Transients_API. If it is there means it was expired and not cleared properly by WP.

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

The topic ‘Advanced transient option ?’ is closed to new replies.