问题:后台订单状态变更后,订单列表中状态不更新,与订单详情中的状态不一致。
原因:cron定时任务出错
临时解决办法:
关闭 grid 的异步生成
Developer -> Grid Settings -> Asynchoronous indexing : disable.
或者通过命令行配置
bin/magento config:set dev/grid/async_indexing 0
bin/magento cache:clean
关于 Scheduled Grid Updates
Grid Setting 配置安排了对以下订单管理Grid的更新,并按照Cron的计划对数据进行重新索引。
- Orders
- Invoices
- Shipments
- Credit Memos
调度这些任务的好处是避免数据被保存时出现的锁,并减少处理时间。当启用时,任何更新只在预定的Cron工作期间发生。为了获得最佳效果,Cron应该被配置为每分钟运行一次。