wp-cron.php Server Overload in WP 2.1

Status
Not open for further replies.

stoxup

Wut
Sep 20, 2006
412
9
0
For those of you running the latest stable release of WP 2.1, there's an error in the wp-cron.php file that runs whenever you submit a new post or edit an existing post.

It will create a new cron process that will eventually overload your server and shut it down. There have been reports of hosts shutting down accounts because of this.

Here's the fix, as per this thread:

"To really fix it, edit the wp-includes/cron.php file. Find the wp_cron() function and add these lines to the beginning of it:"

function wp_cron() {
// Prevent infinite loops caused by lack of wp-cron.php
if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false )
return;

WP Trac Case
 


Status
Not open for further replies.