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

WordPress Trac noreply at wordpress.org
Fri Mar 17 17:25:02 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:18 domainsupport]:
 > Stupid question that I have to ask, you do have
 `define('DISABLE_WP_CRON', true)` in `wp-config.php`, right?
 >
 > I don't use server fired cron so cannot comment on what third party
 requests might do but you could add this to `.htaccess` (if Apache) to
 prevent them ... ?
 >
 > {{{
 > RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1
 > RewriteCond %{REQUEST_URI} "^/wp-cron.php"
 > RewriteRule .* - [L]
 > }}}

 I do have DISABLE_WP_CRON set to true. Not sure I have htaccess on this
 host. This is my first time using linux ever, so bare with me. Do you
 think the rules will make a difference? Any thought on a bug within linux
 firing the cron twice?

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


More information about the wp-trac mailing list