• Resolved dankuwp

    (@dankuwp)


    Hi,

    I am trying to work out why an order’s wp_postmeta data is being deleted or recalculated when the ‘resend new order notification’ is pressed.

    I have query monitor installed and have output on the refreshed order page once the button is pressed but there is only one update query and it doesn’t touch those changed variables.

    I’m wondering if query monitor can actually help me here or if I am confused because, isn’t it showing the queries that make up the refeshed order page rather than the queries ran immediately after I pressed the ‘resend new order notification’ button which then showed me the refreshed page?

    Apologies if I’m being thick….:)

    Thanks

    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Which e-commerce plugin are you using? WooCommerce?

    If the button performs an Ajax request or submits a form when you click on it, then you’re correct that Query Monitor won’t show you the queries and other information that occurred during that processing. It will only show you the information for the page load after it happened and you were presumably redirected back to the order page.

    I know this is frustrating and I have a solution in the works but there’s no ETA yet. It’s quite a lot of work.

    If your MySQL server has query logging enabled you may be able to use that to see which queries are running during that request, it’s just a bit fiddly to dig through those logs.

    Thread Starter dankuwp

    (@dankuwp)

    Thanks John, yes Woocommerce. I might try the MySQL logging, thanks for the idea. At least I know I’m not being thick, Woo themselves told me to use Query Monitor but that won’t work based on what I guessed and you’ve said.

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

The topic ‘Queries run on button press’ is closed to new replies.