【问题标题】:Magento cron schedule created_at time is always 2 hours behind from server timeMagento cron 计划 created_at 时间总是比服务器时间晚 2 小时
【发布时间】:2015-12-25 14:36:25
【问题描述】:

Magento cron 计划 created_at 时间总是比服务器时间晚 2 小时。 Mysql 服务器时间、Magento 时间和 PHP 时间相同。但是 magento cron 作业 created_at 时间总是落后 2 小时。可能是什么原因?

【问题讨论】:

  • created_at 时间戳记为 UTC?

标签: php magento


【解决方案1】:

定义 cron 作业何时创建或运行的不仅仅是您的 Cron 计划,还取决于 Magento 中定义的设置,在 Admin => system => configuration => system => ‘Cron (Scheduled Tasks)’ 下。理想情况下,您应该使用以下设置来确保 Cron 正确运行:

每隔:60 次生成计划 提前安排:1 如果未在以下范围内运行,则错过:60 历史清理每:120 成功历史寿命:120 故障历史寿命:120

此外,请确保每 15 分钟运行一次 Cron 以获得最佳效果。这将确保它不会与其他 Cron 服务重合。

【讨论】:

  • 谢谢,我试试看。
猜你喜欢
  • 2020-01-12
  • 2021-12-21
  • 1970-01-01
  • 2015-11-29
  • 2011-10-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多