Answer the question
In order to leave comments, you need to log in
How to run YII2 controller in background every 5 minutes?
There is a controller that parses data from a specific site and writes it to the mysql database. How to call it in the background every 5 minutes? Are there other options besides cron? OS Ubuntu 14.04 LTS.
Answer the question
In order to leave comments, you need to log in
I hope you have a console controller?
If yes, then set a task in cron and run yii xxx
I don’t know if my advice will be in the topic, but in my opinion, apart from cron, it’s to register in html <META HTTP-EQUIV="REFRESH" CONTENT="300">
and keep this tab in the browser constantly open :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question