WordPress.org

Ready to get started?Download WordPress

Forums

Solve slow WP response in cron.php (2 posts)

  1. CarlitoErgoSUM
    Member
    Posted 5 years ago #

    Whenever I upgrade to a newer release of WP, I experience slowness in WP when I am editing/saving posts. Anything that requires an answer from WP takes forever.... until I edit CRON.PHP

    I found it somewhere on this forum, and it works every time. I search in WP-INCLUDES/CRON.PHP for the line:

    $argyle = @ fsockopen( $parts['host'], $port, $errno, $errstr, 0.01 );

    and I replace it with:

    $argyle = @ fsockopen( $parts['scheme'].’://’.$parts['host'], $_SERVER['SERVER_PORT'], $errno, $errstr, 0.01 );

    and responses return to normal. Now this fix has been around for a while, and I was wondering: Why it is not implemented in the worked over CRON.PHP of the new WP versions? There might be a very good reason for that and maybe I am taking a chance here.

    Can anyone shed some light on this? Thanks in advance,

    Carlo

  2. baal666
    Member
    Posted 5 years ago #

    Did exactly this and got a blank screen on my site. Does not work at all for me.

Topic Closed

This topic has been closed to new replies.

About this Topic