Cron Cache Invalidation Every 4 Hours
Cron expression to invalidate or warm a cache every 4 hours: 0 */4 * * *. Runs 6 times per day at 00:00, 04:00, 08:00, 12:00, 16:00, and 20:00.
0
Minute
*/4
Hour
*
Day (M)
*
Month
*
Weekday
“On the hour, every 4 hours”
Next execution dates
- Thu, Jun 11, 2026, 12:00:00 PMin 15 minutes
- Thu, Jun 11, 2026, 04:00:00 PMin 4 hours
- Thu, Jun 11, 2026, 08:00:00 PMin 8 hours
- Fri, Jun 12, 2026, 12:00:00 AMin 12 hours
- Fri, Jun 12, 2026, 04:00:00 AMin 16 hours
Visual builder
Pick how often the job should run. The expression updates automatically.
At:
How cron syntax works
A standard cron expression has five fields, separated by spaces.
| Minute | Hour | Day of month | Month | Day of week |
|---|---|---|---|---|
| 0 - 59 | 0 - 23 | 1 - 31 | 1 - 12 | 0 - 6 (Sun-Sat) |
*Any value* * * * * — every minute
,Value list separator0 9,17 * * * — at 9 AM and 5 PM
-Range of values0 9-17 * * * — every hour 9 AM–5 PM
/Step values*/15 * * * * — every 15 minutes
?No specific value (Quartz)0 0 12 ? * MON
LLast (day of month/week)0 0 L * ? — last day of month
Common cron expressions
Click any example to load and translate it.
When to use this schedule
Every 4 hours balances cache freshness with regeneration cost. Use for invalidating full-page caches, re-fetching external API data, and warming search index caches before peak traffic hours.