douruoshen1449 2019-07-04 02:03
浏览 87

如何配置wordpress ajax超时限制

I am working on our own wordpress platform. We are sending a post request to another server and ajax call from that server. If the server response get ready, the page will simply render that response. However, the server will need to process on the data in post request and it may take a long time(more than 1 minute). But for wordpress, I think by default it only allow ajax call for 1 minute. If the time server response comes back exceed one minute, page will get a 504 (GATEWAY_TIMEOUT).

issue: jquery.js?ver=1.12.4-wp:4 POST https://example.com/wp-admin/admin-ajax.php 504 (GATEWAY_TIMEOUT)

I expect to increase upper bound of ajax call limitation. I try to modify timeout-related code in wp-admin folder. Still cant work.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 双层网络上信息-疾病传播
    • ¥50 paddlepaddle pinn
    • ¥20 idea运行测试代码报错问题
    • ¥15 网络监控:网络故障告警通知
    • ¥15 django项目运行报编码错误
    • ¥15 请问这个是什么意思?
    • ¥15 STM32驱动继电器
    • ¥15 Windows server update services
    • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
    • ¥15 模糊pid与pid仿真结果几乎一样