Cron jobs are background processes that run automatically at scheduled intervals. Vvveb uses cron to perform essential maintenance and automation tasks that keep your site running smoothly.
These tasks include:
- Publishing scheduled posts
- Clearing expired or stale cache
- Running automatic backups
- Updating currency exchange rates
- Optimizing image sizes
- Executing plugin‑defined background tasks
Because many features depend on scheduled execution, it is strongly recommended to keep cron enabled.
Cron Activation Modes
Vvveb supports three ways to trigger cron jobs:
1. Automatic (Recommended for Shared Hosting)
Cron is triggered by site traffic.
Whenever a visitor loads a page, Vvveb checks whether scheduled tasks need to run.
This option requires no server configuration and works well on shared hosting environments.
2. Manual Configuration (Recommended for VPS / Dedicated Servers)
You can run cron jobs manually using:
Crontab (CLI method)
Add a cron entry to run the Vvveb CLI every hour:
php /var/html/vvveb/cli.php app module=cron/index
This ensures tasks run consistently even if your site has low traffic.
Webhook (URL method)
If you cannot access the server’s CLI, you can trigger cron by calling a special URL every hour:
http://example.com/run-cron/token-code
The token can be copied from:
Tools → Cron Jobs → Configuration
You can use any external service (e.g., uptime monitors, cron services) to call this URL.
3. Disabled (Not Recommended)
Disabling cron will stop all scheduled tasks.
This may cause:
- Scheduled posts not publishing
- Cache not clearing
- Backups not running
- Plugins failing to execute background tasks
Only disable cron for debugging or special development scenarios.
When to Use Each Mode
| Hosting Type | Recommended Mode | Reason |
|---|---|---|
| Shared hosting | Automatic | No CLI access, traffic-based triggering works well |
| VPS / Dedicated | Manual (CLI) | Most reliable and efficient |
| No CLI access | Manual (Webhook) | Easy to trigger via external services |
| Local development | Automatic or Disabled | Depends on workflow |