Cron Jobs
Cron jobs let you run scheduled commands inside your website environment. They are useful for maintenance tasks, imports, queue workers, reports, cleanup scripts, or replacing app-level pseudo-cron systems with a real schedule.
Creating a Cron Job
- Log in to Hosting Panel.
- Open your websites list and choose the website you want to manage.
- Go to Advanced → Developer Tools.
- Scroll to Cron Jobs.
- Add a cron job: specify the command to execute and set the schedule (minutes, hours, day, month, weekday, or custom).
- Save the cron job.
Cron jobs run inside the website's isolated environment and count toward that website's resource usage.
Managing Cron Jobs
- View all active cron jobs in your dashboard.
- Edit or delete cron jobs as needed.
- Check logs to ensure tasks are running correctly.
Common Uses
- Running scheduled WordPress or application maintenance tasks
- Sending reports, exports, or queued emails
- Cleaning cache, temporary files, or stale sessions
- Triggering integrations with external systems
- Running framework schedulers for Laravel, Symfony, or custom apps
Best Practices
- Test your scripts manually before scheduling.
- Use absolute paths in commands whenever possible.
- Redirect output to a log file or email if you need a trace of the job.
- Avoid overly frequent tasks unless the application really requires them.
- Monitor resource usage to maintain account stability.