Slow loading WordPress (Problem found) Resolved

> I have friend who has a site that is extremely slow in loading, we
> tried WordPress 2.3.x 2.5.1, 2.6.5. The original site ran 2.3.1 when
> it became slow. The site ran fine for 3 weeks and became slow after
> writing a post, nothing out of the ordinary, same ole article as any
> other. Deleting the post didn’t help. The site had about 60 posts.
> What is slow, you ask, how about 20 secs to load index.php according
> to Firebug, no plugins, default theme. Here’s the weird thing, the
> plugin wp-spamfree loads a file called wpsf-js.php. This file also
> takes 20 secs to loads.
> On the site is also phpBB installed and there are no speed problems
> with it, neither with a php file that was uploaded to show the
> phpinfo().
> Does anybody have any clue what to look for?
> Things we have done so far but didn’t help
> 1. Optimized tables.
> 2. Dropped all tables and imported them again.
> 3. Upgraded to 2.6.5
> The site:
> forum:
… [show rest of quote]
I wasn’t joking and I found a work around just before Jerry went to

The server has a problem doing a DNS lookup of itself. This causes a
problem for wp-cron execution. When a page loads WordPress tries to
call wp-cron.php, it uses fsockopen and tries to resolve the servers
address. After a 20 sec timeout it fails and continues with the page

The work around:
In wp-cron.php comment out:
if ( $_GET[‘check’] != wp_hash(‘187425’) )

Manually call wp-cron.php :
Sometimes you have to do it twice, I don’t know why.

The real solution is to contact the provider and have them setup a DNS
where the server can resolve itself.

Autor: Peter van der Does


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s