简体   繁体   English

woocommerce内部服务器错误按计划作业执行

[英]woocommerce internal server error on schedule job execution

I have create a custom plugin for products update in from an other system. 我已经为其他系统中的创建了一个自定义插件。 I have also add my plugin in cron schedule of . 我还在 cron日程表中添加了我的插件。

But when i have a lot of products to update, i get error 500, internal server error. 但是,当我有很多产品要更新时,我得到错误500,内部服务器错误。

In the start the procedure interrupted with error about time limit, so i raise the time limit ( set_time_limit(xxxxx); 在开始时程序因时间限制错误而中断,所以我提高了时间限制(set_time_limit(xxxxx);

Furthermore i have raise memory limit in wp-config.php file What else i can do ? 此外,我在wp-config.php文件中提高了内存限制我还能做什么?

Regards S 关心S.

It's hard to advice without seeing code. 没有看到代码就很难建议。 Consider to update only part of products in one execute - make few crons one after another to do all job. 考虑在一次执行中仅更新部分产品 - 一个接一个地完成所有工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM