admin管理员组文章数量:1279112
Using a custom CRON job set up in my Wordpress site I am connecting to an external API to refresh some data. The API only allows for a certain amount of records to be read at a time so I have to "page" through, once one set of data is loaded then make another request to the API and load more, etc.
The problem is that this can quite often run out of memory or just go on too long and error out for large batches of data.
I am wondering if there is any kind of solution for "jobs" or "workers" in Wordpress, where after the first page of results is processed then submit another job for the next page and it's run as a second request instead of one long string.
本文标签: Solution for processing lots of data with CRONAPIdealing with memorytimeout issues
版权声明:本文标题:Solution for processing lots of data with CRONAPI, dealing with memorytimeout issues 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741256975a2366864.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论