• Resolved Antony Booker

    (@antonynz)


    Hello, This plugin is making a lot of ajax requests when the edit page is open for the cdp_action_handling action.

    The cdp-global.min.js script has this request firing every 7 seconds if the “cdp-admin-bar-noti” class is present.

    Would it be possible for this to be optimized to avoid making lots of ajax requests as this can use a large amount of CPU.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support MixHa

    (@mixha)

    Hello @antonynz ,

    Thank you for reporting a concern. However, that request alone uses close to 0 resources of any server CPU in 2025. If you are having issues on your server, we recommend the switch to a proper hosting.

    Kind regards

    Thread Starter Antony Booker

    (@antonynz)

    The issue isn’t so much to do with the low resource issue of the ajax action itself but how ajax requests to WordPress are resource extensive by nature since they require the full WordPress stack to load (all plugins, theme, database connections and so on) on each ajax request.

    For example I have a site that makes 15,000 requests to this ajax request daily. If we estimate it takes .5s for WordPress to load (it’s a large site on a fast dedicated server), then that’s 7,5000 seconds or 2 hours daily of 1 core spending time on these requests. If multiple editors or tabs are open this further takes away resource usage for front end traffic. On slower unoptimized servers these requests could take 1s+.

    This occurs even when the admin toolbar menu for this item is set to be hidden in the plugin’s settings. Surely it won’t be necessary to make that many requests?

    Hopefully that explains the issue further and the potential resource issue when many ajax requests are queried.

    Thread Starter Antony Booker

    (@antonynz)

    Just following up if this will be looked into? 15,000 ajax requests is a lot.

    I’m seeing the same problem as @antonynz — after spending a while in the admin panel, the flood of AJAX requests of action called cdp_action_handling eventually overwhelms the server.

    Thread Starter Antony Booker

    (@antonynz)

    You may need to create another ticket as @mixha has marked this as resolved. Hopefully they will be able to resolve it in the future. I’ve had to replace the plugin with an alternative on multiple sites.

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

The topic ‘Lots of ajax requests’ is closed to new replies.