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

WordPress Trac noreply at wordpress.org
Sat Mar 18 08:40:11 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 domainsupport):

 I've not tested those rules but that's how I would block third party
 access to /wp-cron.php if I was running an Apache server. For Nginx I
 believe you edit the configuration file and add ...

 {{{
 location ~ ^/wp-cron.php {
      allow 127.0.0.1;
      deny all;
 }
 }}}

 Preventing all but the local machine from being able to access wp-cron.php
 would affirm that the issue is with the way you're firing cron. That's
 where my expertise ends though as I don't use the OS to fire cron on any
 of our sites so cannot provide any insight, sorry.

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


More information about the wp-trac mailing list