Does WordPress' $wpdb functions wait when the table is locked?

For example Function A() uses $wpdb->getresults. When $wpdb->getresults wants to read a table and its locked, does it wait for unlocking?

1 Answer 1


By itself wodb doesn't do (and probably can't) anything extra to what the DB will do. When the table is locked you will probably wait longer for a response or fail on timeout.

  • It seems it just trys to recconect to db only when connection is lost.Thanks
    – Sahar
    Jan 20, 2016 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.