[wp-trac] [WordPress Trac] #33423: Arguments switched in wp_batch_split_terms Cron Job in 4.3

WordPress Trac noreply at wordpress.org
Mon Aug 24 18:47:19 UTC 2015


#33423: Arguments switched in wp_batch_split_terms Cron Job in 4.3
--------------------------+-----------------------
 Reporter:  mechter       |       Owner:  dd32
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.3.1
Component:  Taxonomy      |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:  fixed-major   |     Focuses:
--------------------------+-----------------------

Comment (by Kent Brockman):

 Replying to [comment:20 mikenolan]:
 > The cleanup code on this causes us serious issues - we have binary
 logging enabled for replicating our database and in attempting to clean up
 the old cron jobs it generates many, many GB of binary logs in a couple of
 minutes. Think this is because it's calling wp_unschedule_event thousands
 of times in the foreach loops, each of which is writing up to a MB back to
 the binary log.

 Maybe asking to recode the wp_unschedule_event function to accept an array
 of task names to be unscheduled could be a good solution to reduce amount
 of function calls.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33423#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list