[wp-trac] [WordPress Trac] #3713: Missing wp-cron.php might put huge stress on the Server

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 29 18:05:12 GMT 2007


#3713: Missing wp-cron.php might put huge stress on the Server
---------------------+------------------------------------------------------
 Reporter:  Jan      |       Owner:  anonymous                                              
     Type:  defect   |      Status:  new                                                    
 Priority:  normal   |   Milestone:                                                         
Component:  General  |     Version:  2.1                                                    
 Severity:  normal   |    Keywords:  wp-cron cron recursive call heavy load server scheduler
---------------------+------------------------------------------------------
 It happened to me when I forgot uploading wp-cron.php after updating to
 2.1.

 The Scheduler tried to reach wp-cron.php which wasn't found. The request
 was therefore directed to index.php, recursively triggering the scheduler
 again.

 I noticed when I received a mail from my hoster about shutting my site
 down because it caused too much load on the server.

 Now this shouldn't happen under normal circumstances but the effect is
 quite severe ''when'' it happens. Issues with .htaccess could cause this
 too. I haven't completely checked out the cron mechanism yet but this
 seems weakly designed somehow.

 A quick solution that comes to my mind right now would be to check for the
 GET Path before triggering the call to the wp-cron.php. If we are already
 handling a wp-cron request, something must have gone wrong and wp-cron
 should not be called again in the current session.
 This is an ugly hack, I hope someone comes up with something smarter.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3713>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list