If you are using the Cron Jobs feature from your hosting or your server crontab,
you can run cronjob every 20 seconds by setting up 3 cronjobs running every minute, the second one with a 20-second delay:
* * * * * curl https://example.com/cron.php * * * * * sleep 20 && curl https://example.com/cron.php * * * * * sleep 40 && curl https://example.com/cron.php
Now your cron.php will run every 20 seconds.
FastCron is the best tool to run your cronjob every 20 seconds. You just need to create one cronjob, and you'll get:
Start 14-day free trial, no credit card required.
Need help? Reach out to support@fastcron.com - we're happy to help.
See why 8,000+ website developers and their teams use FastCron to run their cronjobs 12 million times a day.
The reliable online cronjob service for your websites since 2009.