Understanding Cron Syntax: A Complete Guide to Scheduling Background Tasks & Workers
In software engineering, a cron expression is a string composed of 5 distinct space-separated fields representing a specific schedule for running automated jobs, background data synchronizations, and server maintenance scripts.
The 5 Fields Explained
| Field # | Time Unit | Allowed Values | Special Characters |
|---|---|---|---|
| 1 | Minute | 0 – 59 | * , - / |
| 2 | Hour | 0 – 23 | * , - / |
| 3 | Day of Month | 1 – 31 | * , - / ? L W |
| 4 | Month | 1 – 12 (or JAN – DEC) | * , - / |
| 5 | Day of Week | 0 – 6 (0 = Sunday) | * , - / ? L # |
Why You Should Disable Default WordPress WP-Cron on High-Traffic Stores
By default, WordPress executes scheduled events (WP-Cron) during regular user page requests. On high-traffic eCommerce stores, this creates unnecessary CPU spikes, slows down page load times, and can cause skipped events. The recommended architecture is to disable WP-Cron via wp-config.php (define("DISABLE_WP_CRON", true);) and trigger it via real Linux Crontab every 10–15 minutes.
Need High-Scale Worker Queues & Background Optimization?
Our engineers build optimized database background workers and scalable task schedulers for high-traffic stores.