[wp-trac] [WordPress Trac] #14668: Check for scheduled event to prevent duplicates

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 22 13:45:36 UTC 2010


#14668: Check for scheduled event to prevent duplicates
--------------------------+-------------------------------------------------
 Reporter:  markparolisi  |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cron          |     Version:  3.0.1          
 Severity:  critical      |    Keywords:                 
--------------------------+-------------------------------------------------
 wp_schedule_event() checks if the interval (hourly, daily, etc) of the
 event is valid, but it does not check if the event is already scheduled.
 A simple check of the cron array should return false if the event already
 exists.
 This will prevent crippling DB queries resulting from endless duplication
 of scheduled events

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


More information about the wp-trac mailing list