Increase Timeout for Slow Server

It is already known that WordPress has built-in auto download and install feature. It is very convenient to have. However, for some reasons, we might be facing error timeout. WordPress do not manage to get updated automatically, or not happening at all. One problem might because of slow server.

There is one way to solve it. Follow this steps..

  • By default, WordPress has pre-configured its own timeout settings, which might be different on each version. This hack should only be applied only if you have problems with auto-upgrading wordpress.
  • Open the wp-admin/includes/file.php file and find this line below:
    
    $response = wp_remote_get($url, array('timeout' => 60));
    
  • To increase downloading or timeout time, simple change the value to greater value (double value for example).
    
    $response = wp_remote_get($url, array('timeout' => 120));
    

By doing this, it will allow more time for downloading and auto-upgrading the wordpress installation.

 

Related Posts:

No related post found so far

You May Also Like:

  • Extraordinary and Unusual Bed Designs Ideas

    Extraordinary and Unusual Bed Designs Ideas

  • Run Web Server on Your Computer Using XAMPP

    Run Web Server on Your Computer Using XAMPP

  • Highlight Search Terms Using jQuery

    Highlight Search Terms Using jQuery

  • Rounded Corners with CSS3

    Rounded Corners with CSS3