[wp-hackers] Slow loading WordPress (Problem found)
Jacob Santos
wordpress at santosj.name
Tue Dec 2 05:28:53 GMT 2008
Ah, that is a slightly different than what you described. Yes, the HTTP
API does have a little issue where fsockopen will ignore the timeout in
some environments (I think Windows). Also, quite a few people had issues
with localhost or whatever. If fsockopen fails to conform to the
timeout, then it will disable the fsockopen transport for 12 hours.
Should just completely disable it, but it might just be a temporary issue.
Jacob Santos
Peter van der Does wrote:
> On Mon, 1 Dec 2008 21:48:15 -0500
> Peter van der Does <peter at avirtualhome.com> wrote:
>
>
>> 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: http://1vibe.net
>> forum: http://1vibe.net/forum
>>
>>
> I wasn't joking and I found a work around just before Jerry went to
> check.
>
> 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
> building.
>
> The work around:
> In wp-cron.php comment out:
> if ( $_GET['check'] != wp_hash('187425') )
> exit;
>
> Manually call wp-cron.php : http://example.com/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.
>
>
More information about the wp-hackers
mailing list