Skip to content

Instantly share code, notes, and snippets.

@amacgregor
Created August 9, 2011 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amacgregor/1134405 to your computer and use it in GitHub Desktop.
Save amacgregor/1134405 to your computer and use it in GitHub Desktop.
config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Demac_Crons>
<version>0.0.1</version>
</Demac_Crons>
</modules>
<crontab>
<jobs>
<demac_crons_removenew>
<schedule><cron_expr>1 1 * * *</cron_expr></schedule>
<run><model>crons/observer::removeNewProducts</model></run>
</demac_crons_removenew>
<demac_crons_removesale>
<schedule><cron_expr>1 1 * * *</cron_expr></schedule>
<run><model>crons/observer::removeSaleProducts</model></run>
</demac_crons_removesale>
<demac_crons_new>
<schedule><cron_expr>1 2 * * *</cron_expr></schedule>
<run><model>crons/observer::addNewProducts</model></run>
</demac_crons_new>
<demac_crons_sale>
<schedule><cron_expr>1 2 * * *</cron_expr></schedule>
<run><model>crons/observer::addSaleProducts</model></run>
</demac_crons_sale>
</jobs>
</crontab>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment