Title: Performance issue
Last modified: February 4, 2022

---

# Performance issue

 *  Resolved [jal2](https://wordpress.org/support/users/jal2/)
 * (@jal2)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/performance-issue-40/)
 * 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:48
       ```
   
 * The 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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/performance-issue-40/#post-15354971)
 * Hey.
 * The function `update_views_count` is 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-L300](https://github.com/nk-crew/visual-portfolio/blob/76f83308f17744c6f3943f09ced1ac8de4be9ead/src/classes/class-custom-post-meta.php#L283-L300)
 * Can 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.

Viewing 1 replies (of 1 total)

The topic ‘Performance issue’ is closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

## Tags

 * [metadata](https://wordpress.org/support/topic-tag/metadata/)
 * [performance](https://wordpress.org/support/topic-tag/performance/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/performance-issue-40/#post-15354971)
 * Status: resolved