• Resolved maskis

    (@maskis)


    Hi!

    I´ve been trying to solve this problem for a while and decided to approach you, because I haven´t found a solution to my problem.

    Our site is being very slow and I have gone through all the plugins one by one and found out, that even if Woocommerce is the only plugin besides theme (Avada) related plugins (Fusion builder and Avada core), the site will slow down considerably.

    I do think, that the problem is due to Woocommerce making between 100 and 200 queries to database no matter what page I try to visit (both front-end and back-end, looked into it with QM-plugin).

    System report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.innovais.fi
    Site address (URL): https://www.innovais.fi
    WC Version: 6.7.0
    REST API Version: ✔ 6.7.0
    WC Blocks Version: ✔ 7.8.3
    Action Scheduler Version: ✔ 3.4.0
    Log Directory Writable: ✔
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 1 Gt
    WP Debug Mode: –
    WP Cron: –
    Language: fi
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 8.0.21
    PHP Post Max Size: 640 Mt
    PHP Time Limit: 59
    PHP Max Input Vars: 500000
    cURL Version: 7.84.0
    OpenSSL/1.1.1q
    
    SUHOSIN Installed: –
    MySQL Version: 10.3.32-MariaDB-cll-lve
    Max Upload Size: 512 Mt
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.7.0
    WC Database Prefix: wp_
    Tietokannan kokonaiskoko: 18.06MB
    Tietokannan tietojen koko: 14.02MB
    Tietokannan hakemiston koko: 4.04MB
    wp_woocommerce_sessions: Tiedot: 0.05MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_api_keys: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_attribute_taxonomies: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_downloadable_product_permissions: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_woocommerce_order_items: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_order_itemmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_tax_rates: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_woocommerce_tax_rate_locations: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_shipping_zones: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_woocommerce_shipping_zone_locations: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_shipping_zone_methods: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_woocommerce_payment_tokens: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_payment_tokenmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_woocommerce_log: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_actionscheduler_actions: Tiedot: 0.13MB + Indeksi: 0.16MB + Moottori InnoDB
    wp_actionscheduler_claims: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_actionscheduler_groups: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_actionscheduler_logs: Tiedot: 0.09MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_atum_order_itemmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_atum_order_items: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_atum_product_data: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_awb_critical_css: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_commentmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_comments: Tiedot: 0.02MB + Indeksi: 0.09MB + Moottori InnoDB
    wp_fusion_forms: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_fusion_form_entries: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_fusion_form_fields: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_fusion_form_submissions: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_gla_budget_recommendations: Tiedot: 0.20MB + Indeksi: 0.11MB + Moottori InnoDB
    wp_gla_merchant_issues: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_gla_shipping_rates: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_gla_shipping_times: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_links: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_litespeed_avatar: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_litespeed_img_optm: Tiedot: 0.23MB + Indeksi: 0.17MB + Moottori InnoDB
    wp_litespeed_img_optming: Tiedot: 1.02MB + Indeksi: 0.17MB + Moottori InnoDB
    wp_litespeed_url: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_litespeed_url_file: Tiedot: 0.02MB + Indeksi: 0.08MB + Moottori InnoDB
    wp_mailpoet_custom_fields: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_dynamic_segment_filters: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_feature_flags: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_forms: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_log: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_mapping_to_external_entities: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletters: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_newsletter_links: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_mailpoet_newsletter_option: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_option_fields: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_posts: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_segment: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_newsletter_templates: Tiedot: 2.52MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_scheduled_tasks: Tiedot: 0.08MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_mailpoet_scheduled_task_subscribers: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_segments: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_sending_queues: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_settings: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_statistics_bounces: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_mailpoet_statistics_clicks: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_mailpoet_statistics_forms: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_statistics_newsletters: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_statistics_opens: Tiedot: 0.02MB + Indeksi: 0.08MB + Moottori InnoDB
    wp_mailpoet_statistics_unsubscribes: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_mailpoet_statistics_woocommerce_purchases: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_mailpoet_stats_notifications: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_subscribers: Tiedot: 0.02MB + Indeksi: 0.13MB + Moottori InnoDB
    wp_mailpoet_subscriber_custom_field: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_subscriber_ips: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_subscriber_segment: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_mailpoet_user_agents: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_mailpoet_user_flags: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_options: Tiedot: 4.39MB + Indeksi: 0.13MB + Moottori InnoDB
    wp_postmeta: Tiedot: 1.52MB + Indeksi: 0.20MB + Moottori InnoDB
    wp_posts: Tiedot: 1.52MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_revslider_css: Tiedot: 0.13MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_css_bkp: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_layer_animations: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_revslider_layer_animations_bkp: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_revslider_navigations: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_revslider_navigations_bkp: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_revslider_sliders: Tiedot: 0.03MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_sliders_bkp: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_slides: Tiedot: 0.05MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_slides_bkp: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_static_slides: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_revslider_static_slides_bkp: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_termmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_terms: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_term_relationships: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_term_taxonomy: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_tm_taskmeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_tm_tasks: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_usermeta: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_users: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_wc_admin_notes: Tiedot: 0.06MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_wc_admin_note_actions: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_category_lookup: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_wc_customer_lookup: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_download_log: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_order_bundle_lookup: Tiedot: 0.02MB + Indeksi: 0.09MB + Moottori InnoDB
    wp_wc_order_coupon_lookup: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_order_product_lookup: Tiedot: 0.02MB + Indeksi: 0.06MB + Moottori InnoDB
    wp_wc_order_stats: Tiedot: 0.02MB + Indeksi: 0.05MB + Moottori InnoDB
    wp_wc_order_tax_lookup: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    wp_wc_product_attributes_lookup: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_product_download_directories: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_product_meta_lookup: Tiedot: 0.02MB + Indeksi: 0.09MB + Moottori InnoDB
    wp_wc_rate_limits: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_reserved_stock: Tiedot: 0.02MB + Indeksi: 0.00MB + Moottori InnoDB
    wp_wc_tax_rate_classes: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_wc_webhooks: Tiedot: 0.02MB + Indeksi: 0.02MB + Moottori InnoDB
    wp_woocommerce_bundled_itemmeta: Tiedot: 0.08MB + Indeksi: 0.09MB + Moottori InnoDB
    wp_woocommerce_bundled_items: Tiedot: 0.02MB + Indeksi: 0.03MB + Moottori InnoDB
    
    ### Post Type Counts ###
    
    attachment: 108
    feedback: 2
    fusion_element: 1
    fusion_form: 1
    fusion_icons: 3
    fusion_tb_layout: 3
    fusion_tb_section: 6
    mailpoet_page: 1
    nav_menu_item: 20
    page: 24
    post: 1
    product: 44
    revision: 1
    shop_coupon: 1
    slide: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (10) ###
    
    Query Monitor: -- John Blackbourn – 3.9.0
    Avada Builder: -- ThemeFusion – 3.8.1
    Avada Core: -- ThemeFusion – 5.8.1
    Klarna Checkout for WooCommerce: -- Krokedil – 2.8.4
    Klarna Order Management for WooCommerce: -- klarna
    krokedil – 1.6.10
    
    LiteSpeed Cache: -- LiteSpeed Technologies – 5.1
    Slider Revolution: -- ThemePunch – 6.5.24
    WooCommerce Shipit Pro: -- Webbisivut.org – 1.5.19
    WooCommerce Product Bundles: -- WooCommerce – 6.16.0
    WooCommerce: -- Automattic – 6.7.0
    
    ### Inactive Plugins (11) ###
    
    Advanced Database Cleaner: -- Younes JFR. – 3.1.1
    ATUM Inventory Management for WooCommerce: -- Stock Management Labs™ – 1.9.18.1
    Avada Custom Branding: -- ThemeFusion – 1.2
    Disable Bloat for WordPress & WooCommerce: -- Disable Bloat – 3.0.3
    Google Listings and Ads: -- WooCommerce – 1.13.4
    Jetpack: -- Automattic – 11.1
    Limit Login Attempts Reloaded: -- Limit Login Attempts Reloaded – 2.25.3
    Really Simple SSL: -- Really Simple Plugins – 5.3.2
    WooCommerce Carrier Agents: -- Lauri Karisola / markup.fi – 1.5.1
    WooCommerce PayPal Payments: -- WooCommerce – 1.8.1 (päivitys versioon 1.9.1 saatavilla)
    WooCommerce Shipit: -- Lauri Karisola / markup.fi – 1.9.9
    
    ### Dropin Plugins (1) ###
    
    db.php: Query Monitor Database Class (Drop-in)
    
    ### Must Use Plugins (1) ###
    
    WordPress automation by Klik: --  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: ,
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ✔
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Kaupan polkutunnus: #8 - /kauppa/
    Ostoskori: ❌ Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
    Kassa: ❌ Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block.
    Oma tili: #11 - /oma-tili/
    Tilaus- ja sopimusehdot: #2489 - /tilaus-ja-toimitusehdot/
    
    ### Theme ###
    
    Name: Avada
    Version: 7.8.1
    Author URL: https://themeforest.net/user/ThemeFusion
    Child Theme: ❌ – Suositus: jos muokkaat WooCommercen isäntäteemaa jota et itse ole tehnyt
    suosittelemme käyttämään lapsiteemaa. Katso: Kuinka luodaan lapsiteema
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: Avada/woocommerce/cart/cart.php
    Avada/woocommerce/checkout/form-pay.php
    Avada/woocommerce/checkout/review-order.php
    Avada/woocommerce/checkout/thankyou.php
    Avada/woocommerce/loop/loop-start.php
    Avada/woocommerce/single-product/add-to-cart/variable.php
    Avada/woocommerce/single-product/short-description.php
    Avada/woocommerce/single-product/tabs/additional-information.php
    Avada/woocommerce/single-product/tabs/description.php
    
    ### Product Bundles ###
    
    Database Version: 6.16.0
    Loopback Test: ✔
    Template Overrides: –
    
    ### Klarna Checkout Request Log ###
    
    2022-06-28 12:25:25: KCO get order
    Response code: 405
    Response message: {"error_code":"HTTP_ERROR","error_messages":[""],"correlation_id":"2a691ea1-2912-4bd9-982a-c698d0b528ad","service_version":"SNAPSHOT"}
    Correlation ID: 2a691ea1-2912-4bd9-982a-c698d0b528ad
    
    2022-06-28 12:23:04: KCO get order
    Response code: 405
    Response message: {"error_code":"HTTP_ERROR","error_messages":[""],"correlation_id":"3a528bd2-4aa6-428f-929d-d2f48d89c893","service_version":"SNAPSHOT"}
    Correlation ID: 3a528bd2-4aa6-428f-929d-d2f48d89c893
    
    2022-06-28 12:18:58: KCO get order
    Response code: 405
    Response message: {"error_code":"HTTP_ERROR","error_messages":[""],"correlation_id":"e1b22203-2e5a-44f0-bfc3-60045fd2ddd8","service_version":"SNAPSHOT"}
    Correlation ID: e1b22203-2e5a-44f0-bfc3-60045fd2ddd8
    
    2022-06-28 12:09:16: KCO get order
    Response code: 405
    Response message: {"error_code":"HTTP_ERROR","error_messages":[""],"correlation_id":"1ee7374d-5dbd-444c-9241-2a290197eb53","service_version":"SNAPSHOT"}
    Correlation ID: 1ee7374d-5dbd-444c-9241-2a290197eb53
    
    2022-06-28 11:33:41: KCO get order
    Response code: 405
    Response message: {"error_code":"HTTP_ERROR","error_messages":[""],"correlation_id":"92500316-b5f9-4a05-a6be-15efb97a1419","service_version":"SNAPSHOT"}
    Correlation ID: 92500316-b5f9-4a05-a6be-15efb97a1419
    
    2022-06-28 11:32:13: KCO get order
    Response code: 405
    Response message: {"error_code":"HTTP_ERROR","error_messages":[""],"correlation_id":"266da0e9-3507-4fc1-afc4-bd81adcf475a","service_version":"SNAPSHOT"}
    Correlation ID: 266da0e9-3507-4fc1-afc4-bd81adcf475a
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ✔ Next scheduled: 2022-06-15 19:26:52 +02:00
    Options: ✔
    Notes: 73
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Valmis: 262
    Oldest: 2022-07-07 18:32:06 +0000
    Newest: 2022-08-02 05:52:24 +0000
    
    Odottaa: 3
    Oldest: 2022-08-02 05:59:57 +0000
    Newest: 2022-08-02 06:02:50 +0000
    
    ### Status report information ###
    
    Generated at: 2022-08-02 07:59:57 +02:00
    

    Any Ideas, what to do?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • I am having this issue aswell. I was trying to figure out why my back-end loading times were 10+ seconds. I disabled all plugins and re-enabled them one by one. As soon as I activated WooCommerce my back-end loading times severely increased..

    Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hello @maskis!

    Thanks for the reply and for sharing the status report with us.

    Our site is being very slow and I have gone through all the plugins one by one and found out, that even if Woocommerce is the only plugin besides theme (Avada) related plugins (Fusion builder and Avada core), the site will slow down considerably.

    I understand that you have disabled all plugins except Avada theme and related plugins (Fusion builder and Avada core).

    Could you please check if the performance issue persists while on a default theme like Storefront or Twenty Twenty-Two and disabling all remaining plugins?

    I also see that you have a caching product on your site. Please make sure it is properly configured and follows our best practice recommendations here: https://woocommerce.com/document/configuring-caching-plugins

    If the above doesn’t resolve the issue, please consult our in-depth troubleshooting guides for perceived slow site performance below:

    Let us know how it turns out!

    Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hello @liftedextracts!

    I understand you are having the same issue.

    However, please consider creating a new thread as per forum best practices here: https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    Thanks!

    The cause for this are the WooCommerce Onboarding Tasks. Possibly only in combination with translation plugins like WPML.

    The Onboarding Tasks are performing slow queries to determine e.g. whether the shop has any physical products.

    Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\Shipping::has_physical_products() looks innocent like this:

    
    			count(
    				wc_get_products(
    					array(
    						'virtual' => false,
    						'limit'   => 1,
    					)
    				)
    			)
    

    But the query turns into this monster:

    
    SELECT wp_posts.ID
    FROM wp_posts
    LEFT JOIN wp_term_relationships
    ON (wp_posts.ID = wp_term_relationships.object_id) JOIN wp_icl_translations wpml_translations
    ON wp_posts.ID = wpml_translations.element_id
    AND wpml_translations.element_type = CONCAT('post_', wp_posts.post_type)
    WHERE 1=1
    AND ( wp_term_relationships.term_taxonomy_id IN (102,103,104,105) )
    AND wp_posts.post_type = 'product'
    AND ((wp_posts.post_status = 'publish'))
    AND ( ( ( wpml_translations.language_code = 'de'
    OR 0 )
    AND wp_posts.post_type IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','event','reference-highlight','reference','acf-field-group','product','product_variation','ep-pointer' ) )
    OR wp_posts.post_type NOT IN ('post','page','attachment','wp_block','wp_template','wp_template_part','wp_navigation','event','reference-highlight','reference','acf-field-group','product','product_variation','ep-pointer' ) )
    GROUP BY wp_posts.ID
    ORDER BY wp_posts.post_date DESC
    LIMIT 0, 1
    

    Each of these queries takes roughly 0.5 seconds on an (highly optimized) larger database.

    They are executed multiple times with different conditions for different tasks, so WooCommerce slows down the backend page rendering of all backend pages by several seconds in total.

    A recent version fixed the case of the Shipping Onboarding Task, but two other cases are still remaining:

    Products::has_products() – which is invoked twice!

    TaskLists::setup_tasks_remaining() invokes the Products onboarding task two times, so the same expensive query is run twice.

    The problem is also documented in this blog post: https://www.wpintense.com/2022/03/11/how-to-fix-slow-woocommerce-6-01-for-wp-admin-pages/

    As all of those queries appear to be count queries, maybe WooCommerce should look into using wp_count_posts() instead. At least WPML seems to implement special handling for count queries (as opposed to regular queries).

    What’s worst about this is that the WooCommerce Onboarding isn’t even visible on all backend pages – to my knowledge it only appears on the WordPress Dashboard.

    So in addition to fixing the problematic queries themselves, Automattic\WooCommerce\Admin\Features\OnboardingTasks\TaskLists::init() should really limit all of this to the Dashboard page only.

    In fact, it’s not clear to me why the starting point for TaskLists are the init and admin_init hooks – instead of the WooCommerce Onboarding admin meta box.

    The whole Onboarding code should not run at all if the admin meta box is not enabled.

    Another issue touching on the same topic:
    https://github.com/woocommerce/woocommerce/issues/33988

    Plugin Support lionel.a11n

    (@lioneldaniel)

    Hello @tha_sun,

    I appreciate you updating your GitHub issue with what you’ve learned and for linking possibly related issues. To help others who may find this thread, the opening poster is reporting their issue affects both the front and back end, and their problem likely won’t be (at least not solely) the issues you mention.

    In the case of the opening poster the first step should be to reproduce the issue to only WooCommerce on a default theme like @tamirat22 recommended. We haven’t heard back from them, and I hope our advice helped them find the solution to their problem.

    Merchants experiencing a similar sounding issue should start a new topic so we can give each situation our full attention (ideally after some troubleshooting on their own). I invite such posters to link to this thread if they think it will help to get us a head start.

    Thanks again for helping out the community!

    Thread Starter maskis

    (@maskis)

    Hi!

    Took some time to go through all the troubleshooting, but sadly my problem still persists. Even if I try to use Woocommerce as only plugin with a default theme (twenty seventeen), the amount of queries made to database ramps up from about 20 to over 100 versus not having Woocommerce activated. This makes my sites loading time from under 0,5 seconds without Woocommerce to between 3 and 7 seconds with Woocommerce activated. I don´t have that many products, product gategories etc. to explain this.

    I also went through Litespeed to see, wheter the problem was there. It did not help and the fact that the situation is not different wheter Litespeed Cache is activated or not tells to me that the problem seems not to be cahce-plugin related.

    Any ideas what I could try next?

    Mirko P.

    (@rainfallnixfig)

    Hi @maskis,

    I see there are no good news and the issue persists. Please contact us at WooCommerce.com > My Account > Support.

    You may need to log into your WooCommerce.com account before you can access that page.

    Also, don’t forget to share your System Status and include a link to this forum thread, so that we can keep track of what’s already been done. The information included will help our support team narrow down the issue much quicker.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce plugin making site slow / too much queries’ is closed to new replies.