Performance issue
-
My site became very slow. When I look at what is happening using query monitor, the query that takes the largest amount of code is akways an update meta data from Visual Portfolio, even if the post that is being shown doesn’t include any VP gallery.
Here is the call stack:
update_metadata() wp-includes/meta.php:271 update_post_meta() wp-includes/post.php:2158 Visual_Portfolio_Custom_Post_Meta::update_views_count() wp-content/plugins/visual-portfolio/classes/class-custom-post-meta.php:294 do_action('wp_head') wp-includes/plugin.php:478 wp_head() wp-includes/general-template.php:3009 load_template('wp-content/themes/vantage/header.php') wp-includes/template.php:730 locate_template() wp-includes/template.php:676 get_header() wp-includes/general-template.php:48The site is running WP 5.8, PHP 7.4, Vantage theme.
Let me know if you need more information, or there is some easy way to get rid of this update.
-
Hey.
The function
update_views_countis pretty simple and I don’t think it may decrease performance. https://github.com/nk-crew/visual-portfolio/blob/76f83308f17744c6f3943f09ced1ac8de4be9ead/src/classes/class-custom-post-meta.php#L283-L300Can you, please, re-test it on a fresh installation (with default TwentyTwenty theme)? Most probably, something is conflicting, 3rd-party plugin or theme, we need to understand what exactly.
Regards, nK.
The topic ‘Performance issue’ is closed to new replies.