[wp-hackers] ALTERNATE_WP_CRON... Is it worth it?

Mike Schinkel mike at newclarity.net
Tue Oct 9 23:39:37 UTC 2012

On Oct 9, 2012, at 5:52 PM, Ben Lobaugh <lists at lobaugh.net> wrote:
> Mike do you have a better way to do it? The understanding here is that this is an alternative workaround for when you do not have access to system cron and in situations when the standard wp-cron method does not work. Sure, there is a very slight likelihood that you could see an ugly URL, but in situations where all of the above are true it should be acceptable.

The better ways are to open the loopback as Otto mentioned or to set up a cron via the server.

> If you have another idea a patch to "fix" the behavior would be welcome

It's possible instead of inspecting $_GET['doing_wp_cron'] when ALTERNATE_WP_CRON is true we could inspect get_option('last_cron') to see if it's been less than 60 seconds and if not ignore cron but I haven't tested the theory to see if it would actually work.  And since there are acceptable workarounds and I don't have the bandwidth to try it right now I'll leave as an exercise to the reader to validate the theory. :)


More information about the wp-hackers mailing list