2

I have an event scheduled to fetch feeds from different sources at midnight. I believe for some reason it is not being triggered. I use Core Control plugin for testing. When I 'Run Now' through it, it works fine. What could be possible reason? Any hint that could facilitate me to get to the cause?

There is no argument to the handler and it is a reoccurring once daily task.

1 Answer 1

3

WP-Cron is not a guaranteed time task scheduler. The trigger for WP-Cron is somebody visiting the site itself, so if nobody visits the site at midnight, then the job doesn't run until somebody does visit the site later.

Similarly, if you use a whole page caching mechanism like WP-Super-Cache, then anonymous users will not really be "visiting" the site since they're getting cached pages. So that can impact WP-Cron's ability to run on time as well.

If you need to run timed events precisely, then you need to use a real cron mechanism instead.

1
  • Thanks a lot! Can you please comment on this related question?
    – a_fan
    Jul 25, 2011 at 12:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.