Support » Plugin: Optimize Database after Deleting Revisions » Unfunctional deletion of expired transients

  • Resolved David

    (@davidki)


    Hello,

    I want to thank you for your great plugin.

    I found a bug in deletion of expired transients.

    On my website I use foreign exchange rates from European central bank, which recalculate price of products from countries other than mine country.

    For these rates I use transients for caching.

    These transients have expiration 6 hours and 24 hours.

    When the transients expired, actual exchange rate from European central bank is downloaded and so the prices of products are always actual on my website and exchange rate is again stored as transients and everything works well.

    But problem occurs when I set “Delete expired transients” in your plugin.

    After the transients expired, they are “Expired”. See the screenshot https://www.screencast.com/t/sdtW4BHi9pJx

    After the transients are deleted with your plugin, the transients suddenly are like “Does not expire”. See the screenshot https://www.screencast.com/t/09QJoHs1g

    And because of transients does not expire, I have no more actual data from European central bank on my website.

    I think deleting anything should mean that it just gets completely removed. And not that the status changes to “Does not expire”.

    Please, can you fix it?

    Thank you,
    David

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author cageehv

    (@cageehv)

    Hey David,

    Thanks for your compliments and feedback!

    I’m not sure where you see the ‘Does not expire’…

    Do you see it in the database?

    Rolf

    David

    (@davidki)

    I use this plugin https://cs.wordpress.org/plugins/transients-manager/.

    It shows “Does not expire” state after deletion with your plugin for such transients.

    Plugin Author cageehv

    (@cageehv)

    Hey David,

    Thanks for the reply.

    My plugin doesn’t put the ‘Does not expire’ state there.

    If you click the ‘Delete expired transients’-button in the Transients Manager plugin, does that give the result you want?

    Rolf

    David

    (@davidki)

    Hey Rolf,

    It’s not about “Does not expire” state, which is probably from Transients Manager plugin and it shows that transients which were expired have not been deleted properly.

    I found this bug before I installed plugin “Transients Manager” which only confirmed that something is wrong with your plugin regarding deleting expired transients.

    So when I, in your plugin, select “Do not delete transients” everything works great. And after expiration of transients another ones are created and data are updated.

    But when I, in your plugin, select “Delete expired transients”, updating of my data stops! After expiration of transients, new ones are not created and the data stops updating.

    So problem is somewhere in your plugin.

    When I click on the red “Delete” in the Transients Manager plugin, transients are properly deleted and my functions create new ones transients and everything works well (until your plugin delete this transients after their expiration).

    Right now I can’t tell if the button “Delete expired transients” in the Transients Manager plugin works as well, because my transients have 24 hours of expiration.

    So I can test it and write you tomorrow, if you think that it is really important information for you.

    I think it’s absolutely clear that problem is somewhere in your plugin and it’s “Delete expired transients” function.

    David

    • This reply was modified 2 months ago by  David.
    David

    (@davidki)

    Hey Rolf,

    I tested it and now I can confirm, that even button “Delete expired transients” in the Transients Manager plugin properly delete expired transients and everything works well.

    But deleting expired transients with your plugin just do not work properly!

    Please, try to fix it. Otherwise your plugin is very needed.

    Thank you,
    David

    • This reply was modified 2 months ago by  David.
    Plugin Author cageehv

    (@cageehv)

    Hey David,

    I just released v4.8.2 of my plugin, which should fix your problem.

    peace,
    Rolf

    Thank you, Rolf.

    Now it works great,

    David

    Plugin Author cageehv

    (@cageehv)

    Hey David,

    Good to hear that the problem has been solved.

    Thanks for your feedback!

    peace,
    Rolf

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.