dpq59734 2011-02-23 18:09
浏览 70
已采纳

Magento如何配置cron

i have configured a custom cron in one of my modules, i want it be executed every 1 week, at 11:00 am, i've wrote this in my config.xml

<cron_expr>0 0 * * 1</cron_expr>

this execute the function every 1 week at midnight, or at least this is what i understand, but now i don't know how to write the expresion to be execute at 11:00 am, i even don't know what really means the * * * * *, in the magento's wiki say everytime the cron is execute.

how can it make my cron execute every 1 week at 11:00 am

thanks

  • 写回答

1条回答 默认 最新

  • doubi2014 2011-02-23 18:12
    关注

    You need to configure the hour item (the second item):

    <cron_expr>0 11 * * 1</cron_expr>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥15 DruidDataSource一直closing
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据