Cron is a system originally built for UNIX that enables users to execute commands, programs and other actions at specified times.
Helpdesk cron jobs
- rt_send_email_cron: for sending emails.
- rt_parse_email_cron: for reading emails.
To see all cron jobs or run cron job manually you can install WP Crontrol plugin. Then go to
Tools -> Crontrol.
Read more about crons below.
What is cron ?
WordPress Cron is what many people refer to as a “pseudo-cron system.” The difference is in how UNIX cron and WordPress Cron take action. A typical UNIX cron system runs in this order:
- A time tied to an action occurs.
- Cron runs the action tied to that time.
With WordPress Cron, it works a little differently:
- A visitor comes to any page on your WordPress website.
- WordPress Cron checks each cron event to see whether the scheduled time has passed.
- If the scheduled time for that event has passed, then WordPress Cron executes any actions tied to that event.
Limitation of wp-cron
You may be wondering, “What happens if no one visits my website at all? Does WordPress Cron not run?” The biggest limitation of WordPress Cron stems from its inability to run without visitors. This leads to a few potential issues.
- WordPress cron is imprecise (zero visits = zero cron runs)
- Running heavy processes could slow down your website
If you have less visitor on your site or you want to make cron job precise, you could follow one of two methods. You could set up your server’s cron to hit wp-cron.php at a regular interval by following the instructions outlined in rtCamp’s article. If this seems overly complicated, you could use a tool such as Pingdom to trigger an HTTP request directly to wp-cron.php.