Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
    
Thanks a lot! Can you please comment on this related question? –  afnrf Jul 25 '11 at 12:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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