I was reading this wiki article about implementing cron in yii2.
I have 2 questions:
-
How can I make cron task that will execute automatically at certain period every day. For example I want to send emails to site clients at 6AM every day.
-
What if I want to create cron job that will do some database operations at certain time every day. For example I want to run few SQL queries to pick up some information from some tables and then based on those infos update some other table. Is this possible ?
Thanks