Skip to content

Heavy update query for wp_options key wordpress-https_path_cache causes high SQL transaction log growth #64

Open
@jormaster3k

Description

@jormaster3k

Hi,

I have a very active WP running WordPress 4.9.4 with WordPress HTTPS 3.4.0. Yesterday we started seeing the MySQL transaction log on our server grow rapidly due to a number of extremely heavy update queries to the wp_options table (queries in excess of 3 million characters). We did not notice any increase in hit count or change in pattern to the hit count.

Here is an example of the query (highly truncated because of extreme length).

UPDATE wp_options SET option_value = a:63889:{s:19:\"/category/featured/\";i:0 {truncated} WHERE option_key = 'wordpress-https_path_cache'

It looks like this might be caused by the update in lib/WordPressHTTPS.php:install():

$this->setSetting('path_cache', $this->_settings['path_cache'], $blog_id);

I can clear the cache from the admin panel, but the size of the database entry continues to grow drastically.

I am looking to determine exactly what this function is doing, and why it seems to be causing such heavy update queries. I have disabled the plugin until I am able to find out more information

Thanks,
Jory

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions