1

With a Profiler I've realized that a single page wp-admin/admin-ajax.php takes 7 seconds to load because of the installed plugins.

I'd like to strongly speed it up. I was thinking of object caching or PHP compiling.

What can I do?

5
  • 2
    Caching is for scaling, not to hide performance problems. Plus, you don't want that for most of the AJAX calls. Find or write better plugins, or disable them for the AJAX requests.
    – fuxia
    Commented Sep 22, 2016 at 8:45
  • Thanks, in the meanwhile I will disable plugins from Ajax requests. But is however not acceptable that a software takes 7 seconds on a 1 GB CPU. It means that it wastes billion of cpu cycles. There is NO solution?
    – Revious
    Commented Sep 22, 2016 at 8:50
  • 2
    I have listed three solutions.
    – fuxia
    Commented Sep 22, 2016 at 8:51
  • 3
    I also want to stress that you really need to differentiate between WP Core and Plugins when talking about "not acceptable". When you put cracked wooden wheels on a Ferrari it also isn't the car makers fault you're slow. Also putting a stronger engine in the car won't help here...
    – kraftner
    Commented Sep 22, 2016 at 10:05
  • 1
    Some plugins are just poorly written. e.g. Not using autoloader for classes and hence the memory takes a hit. If you happen to have one of these plugins you need to replace it or disable it. Many plugins use AJAX heavily , do remote API calls the wrong way, and other things. All of that hurt performance. and this is not something that caching will resolve for you. You need to allow only plugins that were well built with performance in mind. If you did all that and site is still slow, you need to scale your server resources. Commented Sep 22, 2016 at 13:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.