PostgreSQL vs MySQL Performance: Real Benchmarks Compared
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Cron schedule
Cron's smallest step is one minute, but two crontab lines (or one Laravel method) get you a run every 30 seconds.
Cron cannot run more often than once a minute. To run something every 30 seconds, run it every minute and once more after a 30-second sleep, or use Laravel's sub-minute schedules (Laravel 10+), which keep schedule:run alive for the whole minute.
Add it with crontab -e over SSH. Replace the path with your script; the redirect keeps cron from emailing you the output.
* * * * * /path/to/command
* * * * * sleep 30; /path/to/command
Define the task in routes/console.php (Laravel 11 and 12):
use Illuminate\Support\Facades\Schedule;
Schedule::command('reports:send')->everyThirtySeconds();
Then add the scheduler's single crontab entry once; it checks every task each minute:
* * * * * cd /path/to/your-app && php artisan schedule:run >> /dev/null 2>&1
*, then a second one with the same fields and sleep 30; before the command./usr/local/bin/php /home/user/app/artisan schedule:run.No. The smallest unit in a crontab is one minute. Add two lines that both run every minute, with sleep 30 before the command in the second one, or let a long-running worker (a loop or a queue worker) handle it.
With ->everyThirtySeconds() (Laravel 10 and later). The usual every-minute schedule:run entry stays the same; Laravel keeps the scheduler running for the whole minute and starts the task twice.
Many shared hosts only allow cron every 5 or 15 minutes and kill long-running processes. Check your host's limits before relying on sub-minute schedules.
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Last updated: 5 November 2026. See the update log at the end.In a normal PHP-FPM request,...
A slow Docker build usually has one of a few causes: you are sending far more...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.