Posted By

necode on 07/29/11


Tagged

job cron Majento


Versions (?)

Magento How to Set Up a Cron Job


 / Published in: PHP
 

URL: http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job

Magento allows you to schedule custom tasks in an XML configuration, in a similar manner to the UNIX crontab style. Here is an example from app/code/core/Mage/CatalogRule/etc/config.xml:

  1. <config>
  2. ...
  3. <crontab>
  4. <jobs>
  5. <catalogrule_apply_all>
  6. <schedule><cron_expr>0 1 * * *</cron_expr></schedule>
  7. <run><model>catalogrule/observer::dailyCatalogUpdate</model></run>
  8. </catalogrule_apply_all>
  9. </jobs>
  10. ...
  11. </crontab>
  12. ...
  13. </config>

Report this snippet  

You need to login to post a comment.