[wp-trac] [WordPress Trac] #25072: Send no-cache response header from wp-cron.php requests

WordPress Trac noreply at wordpress.org
Sun Oct 4 04:44:42 UTC 2015


#25072: Send no-cache response header from wp-cron.php requests
------------------------------------+------------------------------
 Reporter:  westonruter             |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Cron API                |     Version:  2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by westonruter):

 Replying to [comment:6 nacin]:
 > What if you just used a POST request instead?

 Note we can't just send an arbitrary POST request: it would have to
 explicitly be a POST request without any post data because `wp-cron.php`
 short-circuits if `$_POST` is not empty:

 {{{
 if ( !empty($_POST) || defined('DOING_AJAX') || defined('DOING_CRON') )
         die();
 }}}

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


More information about the wp-trac mailing list