Checking Magento Cron
My tip for checking that the Magento cron tasks are running correctly is by checking the system.log
file. This is located in the Magento root directory under:
<magento_root>/var/system.log
The location of <magento_root>
will depend on where your hosting company put it. Assuming that your hosting company has installed cPanel (which is common), you can access this file from their built-in FTP application. When you open the file, you’ll find that approximately every 60 seconds there will be a load of text written to the file that would look something like this:
[2019-03-11 06:53:04] main.INFO: Cron Job mst_report_email is run [] []
[2019-03-11 06:53:04] main.INFO: Cron Job mst_report_email is successfully finished. Statistics: {"sum":0.0020160675048828,"count":1,"realmem":0,"emalloc":43568,"realmem_start":148897792,"emalloc_start":145677176} [] []
[2019-03-11 06:53:04] main.INFO: Cron Job xtento_xtcore_register_last_cron_execution is run [] []
[2019-03-11 06:53:04] main.INFO: Cron Job xtento_xtcore_register_last_cron_execution is successfully finished. Statistics: {"sum":0.0047497749328613,"count":1,"realmem":0,"emalloc":1176,"realmem_start":148897792,"emalloc_start":145723048} [] []
[2019-03-11 06:53:04] main.INFO: Cron Job indexer_reindex_all_invalid is run [] []
[2019-03-11 06:53:04] main.INFO: Cron Job indexer_reindex_all_invalid is successfully finished. Statistics: {"sum":0.032444953918457,"count":1,"realmem":0,"emalloc":593760,"realmem_start":148897792,"emalloc_start":134149296} [] []
[2019-03-11 06:53:04] main.INFO: Cron Job indexer_update_all_views is run [] []
[2019-03-11 06:53:04] main.INFO: Cron Job indexer_update_all_views is successfully finished. Statistics: {"sum":0.25076198577881,"count":1,"realmem":0,"emalloc":3293504,"realmem_start":148897792,"emalloc_start":134745096} [] []
If you see this, then the Magento cron tasks are working correctly.
You can also tell that your Magento cron tasks are running because the Web Setup Wizard will check it during the Readiness Check. In another post you’ve screen-shot this and I can see that it’s passed the check.
Other Benefits
I’m not sure that cron tasks work the same way that you think. To try and answer your question, cron is used to schedule tasks to run at specific times. They simply run a command of your choosing. The commands that you wish to run depend on you. Magento uses 3 cron scripts to run a multitude of tasks required to make the store work. There aren’t any other cron tasks that Magento would benefit from to make the site “faster”.
Having said that, you can request your Hosting Company to setup something called “log rotation” (if they haven’t already). This utilises a different set of cron tasks ran by the Operating System than archives your log files every week so that they don’t grow out of hand and eat into your disk space. It won’t speed your site up but would help with clutter.