[wp-trac] [WordPress Trac] #57924: Cron fires twice

WordPress Trac noreply at wordpress.org
Fri Mar 17 15:50:14 UTC 2023


#57924: Cron fires twice
-------------------------------------------+------------------------------
 Reporter:  j3gaming                       |       Owner:  j3gaming
     Type:  defect (bug)                   |      Status:  assigned
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Cron API                       |     Version:  6.1.1
 Severity:  normal                         |  Resolution:
 Keywords:  changes-requested 2nd-opinion  |     Focuses:
-------------------------------------------+------------------------------

Comment (by j3gaming):

 Replying to [comment:16 domainsupport]:
 > @j3gaming Quick question ... how is it possible for your cron to be
 firing twice at the (almost) exact same time if you are using the system
 to fire cron once per minute? How exactly have you setup your system to
 fire cron? Thanks.

 Not 100% sure, I have guesses though.

 My environment is Linux, using crontab -e
 Here is the line in /var/spool/cron/crontabs/username
 * * * * * wget -q -O - "https://DOMAIN.COM/wp-cron.php?doing_wp_cron"
 >/dev/null 2>&1

 I'm guess this mimics a web request to wp-cron.php?doing_wp_cron

 If search engine bots (or anything) visited wp-cron.php?doing_wp_cron
 wouldn't both trigger?

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


More information about the wp-trac mailing list