• Resolved nyrup

    (@nyrup)


    When this plugin is enabled, the admin-ajax.php is called every 1-2 seconds when you navigate the control panel in WordPress. I first saw this misbehaviour on the plugin page.

    Since it may take longer than this to get a response, especially for some very complex sites with many plugins, the server will eventually run out of resources and crash the site.

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

    (@patrickposner)

    Hey @nyrup,

    it’s every 5 seconds, but you’re still correct!

    However, as we know this might be a problem for some websites, we made it optional.

    Go to Simply Static -> Settings -> Integrations and disable the “Simply Static (Admin Bar)” integration, and we won’t do these requests anymore ??

    Thread Starter nyrup

    (@nyrup)

    Thank you for your prompt reply. I think it would be beneficial to check if an existing Ajax connecting is already running before a new one is launched.

    Plugin Author patrickposner

    (@patrickposner)

    Good feedback @nyrup,

    I put that in my log for the next update.

    The problem is that there isn’t a mechanism in WP to check for concurrent requests (it’s a problem in the entire heartbeat API), but let’s see if we can come up with something clever to handle it more efficiently!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.