• keith

    (@wkeithgardner)


    I am using both Ad Inserter Pro (AIP) and ASP. I’ve notice that admin-ajax.php is very slow on the back-end. It is also very slow when AIP makes a front-end call.

    Deactivating ASP made AIP twice as fast, but still significantly slow, with little effect on the back-end.

    I am posting if anyone had any guidance on this issue. I did notice ASP is setting Ajax asynch to false in the code but not sure about the context since the code is minified. I wanted to make sure that ASP is setting it back to true. Also, I am concerned if there are any DNS or polling issues that I should be aware? I don’t fully understand the problem, so I appreciate any guidance.

    I am looking at server configuration issues (DNS and reducing the WP heartbeat to reduce the load Ajax has on the server). The server is probably throttling AJAX. The server seems to have a lot of asynch download of assets with the webpage, but otherwise, very slow in terms of processing power. We are looking at a new hosting plan for the live server. The development and staging server are both faster but I am noticing significant Ajax performance issues with the development and staging server, it just isn’t as bad as it is on the live server.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    That could indicate some sort of a conflict there. The search plugin actually has a selective class loader, so that when the ajax/front-end call is not initiated towards the plugin, it does not load any resources.

    It is however possible, that some class/function names may mismatch, or there is a different unknown issue, that may affect this combination. Often times however it is not only related to multiple plugins, but to a certain server configuration as well. Because of that, these issues are extremely hard to debug/resolve.

    If you see any error messages, or there is anything related in the server error log file, please let me know.

    Also, if you use the Pro version, please use the ticket system on this URL: https://wp-dreams.com/open-support-ticket-step-1/

    Best regards,
    Ernest M.

    Thread Starter keith

    (@wkeithgardner)

    I contacted the other plugin author as well. He seems to think that it is the server throttling /wp-admin/admin-ajax.php since calling it directly will have the same response time of about 5 seconds even if the plugins are deactivated, which seems to indicate it isn’t caused by a conflict if disabling does not improve response time. The response time is consistent.

    There is a 1.1-1.2 second response time on the staging server with the same hosting provider. With a different hosting provider my development server, there is a 0.8-0.9 second response time. Those response times are pretty consistent.

    Hosting support has been very inconsistent. First, they sent me to an article about throttling/disabling the WordPress Heartbeat API. Then, they suggest moving to a better hosting account. The, support said we should just optimize more. But I can’t optimize Ajax taking 5 seconds to respond.

    • This reply was modified 7 years, 7 months ago by keith.
    Plugin Author wpdreams

    (@wpdreams)

    I think he might be right. Some host actually have PHP process throttling active, especially on shared hosts. Either there is a malware/hack somewhere actively conflicting, or somewhere the code goes to an infinite/long loop, or the host is indeed uses some sort of process throttling.

    If I may recommend – I am using Digital Ocean as a hosting provider for years now. It takes a bit of time to set up everything correctly, as it is not really a 1-click host, but the servers are not limited/throttled.
    I am using 10-15$ servers on most of my stuff, and they work flawlessly. On the lite version demo the response time is around 0.6s, the pro version demo is slower (around 1s), but it has lots of plugins active. Both demos run on one server – 15$/mo Standard droplet, 2GB, 2vCPU, 30GB disk, Ubuntu 16.04, LAMP stack.

    Best regards,
    Ernest M.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ASP Ajax Issues’ is closed to new replies.