September 2018
Beginner to intermediate
218 pages
4h 27m
English
Creating a new cron job is as easy as doing the following:
Let's create a simple cron job. We will start off by creating the <MAGELICIOUS_DIR>/Core/etc/crontab.xml file with the following content:
<group id="default"> <job name="the_job" instance="Magelicious\Core\Cron\TheJob" method="execute"> <schedule>*/15 * * * *</schedule> </job></group>
The instance and method values map to the class and method within that class, which will be executed when cron job is run. The schedule is a cron, like the expression for when the job is to be executed. Unless there are specific requirements telling us ...
Read now
Unlock full access