Topic Resolution: Resolved

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3834
    AvatarRami Z
    Support Expired

    So the template looks good but I am facing the below problems:

    Time To First Byte
    The TTFB is really high (>2000ms). I already have the site running on Cloudflare and installed the Autoptimize, WP-Optimize, WP Smush IT plugins as listed under the documentation.

    https://leebrosusthemes.gitbook.io/organey/recommendation/optimize-wordpress

    Slow Store
    The store is super slow too when I try to filter. It takes too much time to load.

    Sometimes, I also get constant “Error establishing a connection to the database” every now and then. The host is good and running other WP sites like a charm.

    Any advice?

    • This topic was modified 3 years, 1 month ago by AvatarRami Z.
    #3838

    Hi you,

    Please check your server again, it takes a long time to respond, this may be the cause of your website being slow: https://prnt.sc/1w017qn

    #3839
    AvatarRami Z
    Support Expired

    Hello,

    Yep, I noticed that the server TTFB is almost 7 seconds despite all the optimization. I run several sites on this server and they run really quick. Could it be that I’m running a WP site on a Windows server that supports PHP?

    The server specs are already super good:
    8 core / 16 thread
    Intel Xeon-D CPU
    30 GB RAM
    1 TB SSD
    Unmetered bandwidth

    Do you suggest I move to a shared Linux hosting plan?

    #3843

    Oh, please use Linux hosting, it has better support for PHP or you can choose LiteSpeed Web Server, which is a better support version for WordPress

    #3845
    AvatarRami Z
    Support Expired

    So you believe the issue is with the Windows server? I’ve hosted several WP sites before but they don’t have this issue. It is the first time I face a TTFB issue but it is the first time I host a WooCommerce site on a dedicated Windows server.

    I opened a support ticket with the server admins just to check if the issue is server-related or database-related.

    I will test on LightSpeed Web too because they offer Free trials.

    #3848

    Ok, let me know if you need to help.

    #4223
    AvatarRami Z
    Support Expired

    I think I found the issue. I installed a “Query Monitor” plugin and it shows that all pages on the dashboard perform well. However, the front pages display PHP errors and that’s what is probably causing the high TTFB.

    Example 1:

    Undefined property: WP_Error::$name 1
    wp-content/themes/organey/includes/template-functions.php:268
    organey_mobile_navigation()
    wp-content/themes/organey/includes/template-functions.php:238
    organey_mobile_nav()
    wp-includes/class-wp-hook.php:303
    do_action(‘wp_footer’)
    wp-includes/general-template.php:3031
    wp_footer()
    wp-content/themes/organey/footer.php:23
    Organey_Header_Footer_Elementor->override_footer()
    wp-includes/class-wp-hook.php:305
    do_action(‘get_footer’)
    wp-includes/general-template.php:82
    get_footer()
    wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php:30

    Example 2:

    Attempt to read property “slug” on null 3
    wp-includes/taxonomy.php:4510
    get_term_link()
    wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-list-walker.php:105
    WC_Product_Cat_List_Walker->start_el()
    wp-includes/class-wp-walker.php:144
    Walker->display_element()
    wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-list-walker.php:151
    WC_Product_Cat_List_Walker->display_element()
    wp-includes/class-wp-walker.php:255
    Walker->walk()
    wp-includes/category-template.php:1107
    walk_category_tree()
    wp-includes/category-template.php:650
    wp_list_categories()
    wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php:294
    WC_Widget_Product_Categories->widget()
    wp-includes/class-wp-widget.php:393
    WP_Widget->display_callback()
    wp-includes/widgets.php:831
    dynamic_sidebar(‘sidebar-woocommerce-shop’)
    wp-content/themes/organey/sidebar.php:25
    load_template(‘wp-content/themes/organey/sidebar.php’)
    wp-includes/template.php:716
    locate_template()
    wp-includes/general-template.php:136
    get_sidebar(‘shop’)
    wp-content/plugins/woocommerce/templates/global/sidebar.php:22
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1039
    woocommerce_get_sidebar()
    wp-includes/class-wp-hook.php:303
    do_action(‘woocommerce_sidebar’)
    wp-content/themes/organey/woocommerce/archive-product.php:126

    Example 3:

    Undefined property: WP_Error::$name 1
    wp-content/themes/organey/includes/template-functions.php:268
    organey_mobile_navigation()
    wp-content/themes/organey/includes/template-functions.php:238
    organey_mobile_nav()
    wp-includes/class-wp-hook.php:303
    do_action(‘wp_footer’)
    wp-includes/general-template.php:3031
    wp_footer()
    wp-content/themes/organey/footer.php:23
    Organey_Header_Footer_Elementor->override_footer()
    wp-includes/class-wp-hook.php:305
    do_action(‘get_footer’)
    wp-includes/general-template.php:82
    get_footer(‘shop’)
    wp-content/themes/organey/woocommerce/archive-product.php:131

    #4224
    AvatarRami Z
    Support Expired

    And I just figured out what was the issue. It was the “Smush” plugin. It was generating API calls and causing a delay of 5+ seconds. I disabled the plugin and the site performs well.

    #4225

    3rd party services will greatly affect the loading speed of the site, so it is necessary to minimize the use of this service.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.