Networknet archive Blog

WordPress: A slow intranet site behind a firewall

Originally published Last updated 2 comments

By Ivan Versluis

A WordPress 2.7 installation on my intranet was taking more than 30 seconds for every action in the administration area. I had downloaded it and installed it on an Ubuntu JeOS 8.04 virtual appliance.

I am a big fan of WordPress and had recently introduced it in my enterprise environment. This installation ran on a restricted network with no internet connection.

Initial configuration worked, but the administration area took minutes to respond. The virtual machine could not connect to internet services through the intranet firewall. The following changes brought page loading down to less than a second.

Disable internet requests from WordPress

  1. Go to ../wordpress/wp-includes and open http.php.
  2. Search for "function request( $url, $args = array() ) {".
  3. Add "return;" as shown in the example: "return;global $wp_version;".

Image Description

This disabled all internet interactions, which I did not need in this environment.

Reference

2 comments

Comments from the original WordPress site, kept read-only.

  1. Jonas

    I use this to tell their sites with wordpress 2.7x

    Now how do I do this in Worpdress 3.0.1. There is this line function request ($url, $args = array ()...