• Is it expected that the wc_reserved_stock table just fills up with rows that don’t get deleted once they pass their expiry date?

    Is there not an automated task that flushes the table?

    If a customer begins checking out, but then abandons their purchase, or the payment fails for whatever reason, their entry in the wc_reserved_stock isn’t deleted after its expiry time lapses. If they complete their purchase, then the entry does get deleted.

    It doesn’t seem to affect the site – the stock is still being managed properly, it just seems odd that the table isn’t tidied up – I’m just wondering if that’s the expected behaviour, or a bug.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter ChiefWigs1982

    (@chiefwigs1982)

    Hi @drwpcom thanks for your reply. I’ve installed that plugin, but there’s no woocommerce_cancel_unpaid_orders cron in the “Cron Events” list at all.

    Thread Starter ChiefWigs1982

    (@chiefwigs1982)

    Anyone still reading this?

    Thread Starter ChiefWigs1982

    (@chiefwigs1982)

    1602 total now – anyone there..?

    Plugin Support Ena P (a11n)

    (@drwpcom)

    Hi @chiefwigs1982. We’ve seen this issue crop up if caching on the site or server level is caching the wc-order-functions.php file, therefore preventing the cron from being setup. I recommend that you check with your host about this to see if that helps. You can also use WP Crontrol to schedule woocommerce_cancel_unpaid_orders to see if that helps.

    Thread Starter ChiefWigs1982

    (@chiefwigs1982)

    Hi @drwpcom thanks for getting back to me. I can’t see any issues with the caching. What settings do I need to enter in Crontrol to set it up?

    Cheers,

    –Jon.

    corsonr – a11n

    (@corsonr)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter ChiefWigs1982

    (@chiefwigs1982)

    The last post was me asking you a question – I’m still waiting for a response!

    Thread Starter ChiefWigs1982

    (@chiefwigs1982)

    This is still not resolved, so please don’t mark it as such.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘wc_reserved_stock table not emptying’ is closed to new replies.