The Magento cron job
Magento has important system processes that are very important to maintain the system's working at its full potential. These processes need automated executions to handle the updates made by the user and administrator. That is the why this feature is critical to Magento.
Cron job works with UNIX systems and can schedule specific tasks to be executed in a predetermined time on the server. The following activities can be scheduled to execute on the Magento 2.0 system:
The updating of currency rates
Customer notifications
The generation of Google sitemap
Price rules
Sending e-mails
Re-indexing
To configure the cron job, follow this recipe.
Find the php.ini
file path.
If you use XAMPP, as was suggested for a web server solution at the beginning of the book, you simply can use the XAMPP/xamppfiles/etc/php.ini
path. If you use a Unix-based terminal, you can use the command to find the PHP configuration file. Perform the following steps:
Open the terminal.
Run the
sudo crontab -u magento_user...