Clear Sitemap Cache – slow down site and deadlock on db
-
Hi all,
I’ve some problem with sitemap cache. I’ve deadlock on db when plugin try to clean transient and site crash. I put db proc stats to understand how many query trying to delete this transient:
Query | 35 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tmlj' OR opt ion_name LIKE '\_transie | Query | 24 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tmlj' OR opt ion_name LIKE '\_transie | Query | 3 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tLIa' OR opt ion_name LIKE '\_transie | Query | 35 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tRzf' OR opt ion_name LIKE '\_transie | Query | 24 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tH1N' OR opt ion_name LIKE '\_transie | Query | 13 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tH1N' OR opt ion_name LIKE '\_transie | Query | 13 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4tUGk' OR opt ion_name LIKE '\_transie | Query | 53 | updating | DELETE FROM wp_options WHERE option_name LIKE '\_transient\_%\_4u1lS' OR opt ion_name LIKE '\_transie |
and this queries cause this:
mod_fcgid: stderr: WordPress errore sul database Deadlock found when trying to get lock; try restarting transaction per la query DELETE FROM wp_options WHERE option_name LIKE '\\_transient\\_%\\_4cBCd' OR option_name LIKE '\\_transient\\_timeout\\_%\\_4cBCd' fatta da require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('single-lesson.php'), do_action('start_lesson'), call_user_func_array, Lesson::setStarted, Core::addUserRelation, 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_Sitemaps_Cache::invalidate_helper, WPSEO_Sitemaps_Cache::invalidate, WPSEO_Sitemaps_Cache::clear, WPSEO_Sitemaps_Cache_Validator::invalidate_storage, WPSEO_Sitemaps_Cache_Validator::cleanup_database, referer: <url>
This brings the db cpu to 100% and with busy site this cause a queue like stats above and user get error 500
I use wp seo ver. 3.2.1 but this also applies to earlier versions.
If I can be useful for any other data/info tell me.
P.s: now I had to comment line #175 class-sitemaps-cache-validator.php
$wpdb->query( $query );Thank you
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Clear Sitemap Cache – slow down site and deadlock on db’ is closed to new replies.