• Resolved evalast

    (@evalast)


    Tbh its just crazy how absurd slow WordPress runs on PHP 8.2. I tested PHP 8.2 vs PHP 7.4 on two different servers for weeks now – one with APACHE and another one with NGINX. Running a very highly optimized WordPress Theme and Woocommerce. Here the results regarding

    TTFB with PHP 8.2 ~ 1550 ms
    TTFB with PHP 7.4 ~ 650 ms

    Any plans to fix this?

    • This topic was modified 8 months ago by evalast.
Viewing 5 replies - 1 through 5 (of 5 total)
  • threadi

    (@threadi)

    The web server is also a significant factor. Which PHP version do you use with which web server?

    Also note that the plugins used have a significant impact on response times. WooCommerce also has its share. Deactivate all plugins as a test to get “real” values. Then you can reactivate plugins to find out which ones have the biggest impact on the loading time.

    Thread Starter evalast

    (@evalast)

    I tested my site with / without Woocmmerce, with / without plugins, new installation, default wp themes, woo storefront theme and so on. Building websites on top of wp since 2006 now, and this is the first time i was not able to solve the slow response with any optimization like cdn and so on further till i read this topic

    https://www.ads-software.com/support/topic/wordpress-very-slow-slow-server-response/#post-16628788

    and just tried and find out…

    • This reply was modified 8 months ago by evalast.
    threadi

    (@threadi)

    I would be happy to get an answer to my question above.

    Which PHP version do you use with which web server?

    Furthermore:
    Please take a look under Tools > Site Health to see whether messages are mentioned there depending on the PHP version.

    This surprises me a bit, as my experience tends to be the other way around: the performance is even better with every PHP version. And that is very many different hostings. Therefore, I still suspect some property in your hosting is responsible for this. It is also possible that there are missing libraries in the PHP installations, so it would be useful to take a look at Site Health.

    Another factor is the database system used. Is it always the same in your tests? Or are they different as well? With the Query Monitor plugin you can easily see what the queries look like against the database.

    Moderator James Huff

    (@macmanx)

    For what it’s worth, WordPress’s support for PHP 8.2 is still in beta: https://make.www.ads-software.com/core/handbook/references/php-compatibility-and-wordpress-versions/

    Plus, we simply cannot guarentee that your theme and plugins will be compatible.

    If you want to run on PHP 8 with no surprises, I recommend sticking with PHP 8.1.x for now.

    • This reply was modified 8 months ago by James Huff. Reason: added note about theme and plugin compatibility
    Thread Starter evalast

    (@evalast)

    Looks like its a PHP 8.2 problem instead of a WP Problem. I just switched to 8.1 and it works fine – it uses ~150MB of memory. Memory of PHP 8.2 in my case brings my test server almost to hold because of high memory usage – at least twice of 8.1. Looks like thats the problem. Some say its a memory leak…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Performance ultra slow loading with PHP 8.2 but fast with 7.4’ is closed to new replies.