Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Performance drop on admin due to constant http request

Home / Forums / Virtue Theme / Performance drop on admin due to constant http request

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
January 2, 2017 at 1:03 pm

Hi,

I noticed that at every single wp-admin page request WordPress checks for theme updates from external hosts through HTTP (instead of every hour or so). This causes delays of several seconds at every admin page load.

WP saves the last check in a transient ‘update_themes’, but I noticed that Virtue Premium ( 3.9.4 ) clears this transient due to the filter add_filter( 'pre_set_site_transient_update_themes', array( $this, 'status_check' ) ); in kt_framework/kt-api.php . Result is that the external requests are executed at every admin page load instead of once every couple of hours.

The function status_check never returns a value; and therefore clears the value before the transient is saved.

HOW TO FIX:

in kt-api.php replace public function status_check() by public function status_check( $transient_value = null)
and append line return $transient_value; at the end of the function.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.