Title: wp-cron.php cache-control header
Last modified: February 4, 2019

---

# wp-cron.php cache-control header

 *  Resolved [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * (@willstockstech)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cron-php-cache-control-header/)
 * Hey guys,
 * Quick question – I noticed that when requesting wp-cron.php, I get the standard
   cache control header returned (in my case `A3600` (1 hour). I disable wp-cron
   by default and use a “real cron job” to call `wp-cron.php?doing_wp_cron` via `
   wget` every 5 minutes however I noticed this morning that it didn’t “work” correctly
   until I called it directly from my machine.
 * My question, therefore, is – because I have the cron job being called from my
   server, is the cache-control header interfering and not allowing the `wget` command
   to “correctly” execute every 5 minutes – instead the response is coming from 
   cache instead?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * (@willstockstech)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cron-php-cache-control-header/#post-11165700)
 * [https://willstocks.co.uk/wp-cron.php](https://willstocks.co.uk/wp-cron.php) 
   for reference
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cron-php-cache-control-header/#post-11167648)
 * Hello,
 * wget doesn’t do caching, so it’s not related to the cache control header.
    Can
   you please share what that cronjob actually do?
 *  Thread Starter [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * (@willstockstech)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cron-php-cache-control-header/#post-11170519)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/) – Apologies, it was
   a red herring! Not actually the issue I was seeing 🙂
 * My cron job is a very simple one, it’s just `wget`‘ing `wp-cron.php?doing_wp_cron`
   every 5 mins, but it didn’t seem to be executing. Was not a caching issue

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-cron.php cache-control header’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)
 * [wget](https://wordpress.org/support/topic-tag/wget/)

 * 3 replies
 * 2 participants
 * Last reply from: [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/wp-cron-php-cache-control-header/#post-11170519)
 * Status: resolved