New answers tagged cron
1
You can disable magento cronjobs anytime you want by using this command:
php bin/magento cron:remove
To re-enable cronjobs, run this command:
php bin/magento cron:install
The issue that you will face is,
no auto indexing will perform after you disable crons,
no catalog rules will apply
no price index will run
no custom cronjob will execute (Added by any ...
0
It's kinda simple.
I got this from module Mageplaza\ImageOptimizer:
You only need to load config_path in $this->_configValueFactory, and magento will automatic run the cron for you.
app/code/Mageplaza/ImageOptimizer/etc/adminhtml/system.xml:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
Run the following command from the Magento root directory:
php -f bin/magento cron:install
After installing Cron, you view the job by running the following command:
crontab -l
Top 50 recent answers are included
Related Tags
cron × 937magento2 × 336
magento-1.9 × 221
crontab × 144
email × 69
magento-cron × 57
magento-2.1 × 36
php × 34
magento2.3 × 33
magento-1.8 × 31
database × 31
schedule × 31
reindex × 30
configuration × 28
magento-1.7 × 26
module × 25
error × 25
orders × 23
ce-1.9.1.0 × 20
product × 18
order-email × 18
cronjobs × 18
magento-1 × 17
cache × 15
transactional-mail × 15