WordPress数据库错误发现死锁

时间:2016-02-23 15:12:36

标签: php mysql wordpress woocommerce database-deadlocks

由于这个问题,我的网站变得缓慢:

WordPress database error Deadlock found when trying to get lock;
try restarting transaction for query DELETE FROM wp_options
WHERE option_name LIKE '_transient_wpseo_sitemap_cache_shop_order_%'
OR option_name LIKE '_transient_timeout_wpseo_sitemap_cache_shop_order_%'
made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), 
do_action('template_redirect'), call_user_func_array, WC_AJAX::do_wc_ajax, 
do_action('wc_ajax_checkout'), call_user_func_array, WC_AJAX::checkout, 
WC_Checkout->process_checkout, WC_Gateway_COD->process_payment, 
WC_Abstract_Order->update_status, WC_Abstract_Order->add_order_note,
wp_insert_comment, wp_update_comment_count, wp_update_comment_count_now, 
clean_post_cache, clean_object_term_cache, 
do_action('clean_object_term_cache'), call_user_func_array,
wpseo_invalidate_sitemap_cache_terms, wpseo_invalidate_sitemap_cache, 
WPSEO_Utils::clear_sitemap_cache

任何人都能说出为什么会这样吗? 如何自动删除瞬态?

以前任何一个阶段都可以解决问题吗?这是因为使用任何插件吗?我们正在使用woocommerce。

0 个答案:

没有答案