• I was wondering how difficult it would be to add a scheduled task to erase all transient, even not expired ones. Perhaps once a week, or once a month? For some reason, the software we use leave a lot of transients behind, which after some time create huge memory problems with our server. If that’s not in your plans (and I can understand if it isn’t) some help on where one could code that in and how, would be greatly appreciated.

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Artiss

    (@dartiss)

    Hi @sv1cec,

    I’m not aware of anything else existing that can do this. If you’re any good with coding the ‘Other Notes’ section includes details of a hook that can be used to clear down all transients. This could be hooked into a timer.

    Otherwise, I’ll add it to my list of possible future options! It’s not something I’d recommend doing – I think going back to the developers of that software and getting them to fix it is always going to be the best solutions – but there’s no harm in me adding it.

    Thread Starter sv1cec

    (@sv1cec)

    David, thanks for your answer. Obviously removing the source of those transients is the best answer, but that means identifying and pinpointing the plugin that’s causing them. Your document about what transients are (and how they are set) is going to be a fine help for that. In the mean time, I’ll try to figure out where the code is, which is doing the daily clean up and maybe alter it to do the complete one.

    Many thanks Sir!

    Plugin Author David Artiss

    (@dartiss)

    Ah, I see. I thought you’d identified it already.

    Maybe I’ll add a log to list out the names of the transients found to give users (who are interested) an idea of what’s causing any problems. I’ll have a think about the best way to implement a solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘All transient scheduled clean-up’ is closed to new replies.