You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need for example an online cronjob service, which runs your route every minute. This is because PHP only runs, if it is executed. You can see this in the FAQ(https://github.com/liebig/cron#faq):
"In comparison to a Java application server for example, PHP only runs if it is executed. If crontab or an online cronjob service provider calls PHP and starts the application, Cron can execute the jobs and will start the work. If PHP is not started, the application sleeps and nothing happens. "
Iam using your example code in global.php
Event::listen('cron.collectJobs', function() {
});
And when I do http:root/cron.php?key=$key
only Once cron job will execute and table also get updated once.How to execute this function every minute ?
The text was updated successfully, but these errors were encountered: