[wp-trac] [WordPress Trac] #57271: Cron unschedule / reschedule event errors

WordPress Trac noreply at wordpress.org
Thu May 2 02:26:08 UTC 2024


#57271: Cron unschedule / reschedule event errors
------------------------------------------+------------------------------
 Reporter:  domainsupport                 |       Owner:  audrasjb
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Cron API                      |     Version:  6.0
 Severity:  normal                        |  Resolution:
 Keywords:  needs-unit-tests needs-patch  |     Focuses:
------------------------------------------+------------------------------

Comment (by emilycestmoi):

 For my sites this is not a case of overloading either. The issue is:

 {{{#!php
 UPDATE `wp_options` SET `option_value` = serialized_data WHERE
 `option_name` = 'cron';

 mysqli_affected_rows() == 0;
 }}}

 The update is run and rows matches: 1 but changed: 0. The reason is
 because the update statement is attempting to set the same serialized_data
 that is already set in the database. I have not found any cron events that
 have not been rescheduled or have been lost due to this warning, so for my
 case this warning can be safely ignored.

 Question: Does anyone have solid evidence (i.e. debug logs and not just
 speculation) that shows that cron events are actually missed?

 Otherwise, I would propose a patch that just ignores the error.

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


More information about the wp-trac mailing list