Open dimitarconev opened 4 years ago
You could try reducing the HTTP request timeout so that the update checker doesn't wait as long when the server isn't working. You can use the puc_request_info_options-$slug
filter to change the options passed to wp_remote_get()
. Example:
add_filter('puc_request_info_options-myplugin', function($options) {
$options['timeout'] = 2; //seconds
return $options;
});
So, I
m using a self-hosted gitlab server. If I register the checker, everything works. But if for some reason the gitlab is down, all Ajax calls is slow and took more than 10-20 seconds until it refuse to load. How I can prevent that, I
m using the latest version of the update checker.