Home › Forums › WoodMart support forum › Product filter slow load
Product filter slow load
- This topic has 9 replies, 2 voices, and was last updated 10 months, 1 week ago by Artem Temos.
-
AuthorPosts
-
November 13, 2023 at 11:28 am #511913
vodocentar.rsParticipantHello,
The website is on LiteSpeed servers and it uses using plugin for cache. Pages are loading just fine, but waiting for the filters to apply is taking too long, for over 4 seconds. Ajax shop is enabled, but it is the same problem when it is disabled.
Can you please give me some advice on how to speed it up and what is the problem?
Thank youNovember 13, 2023 at 12:50 pm #511943
Artem TemosKeymasterHello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
January 29, 2024 at 9:49 pm #534720
vodocentar.rsParticipantSorry for the late reply.
I installed a Query Monitor to help me find the cause of the slow opening of the filter and category product pages.
After activating twentytwenty site has a smaller amount of queries and total load time.
When woodmart is active, this is the query that has a lot of rows:update_meta_cache()
wp-includes/meta.php:1177
update_postmeta_cache()
wp-includes/post.php:7411
update_post_caches()
wp-includes/post.php:7353
WP_Query->get_posts()
wp-includes/class-wp-query.php:3545
WP_Query->query()
wp-includes/class-wp-query.php:3824
get_posts()
wp-includes/post.php:2452
wp_get_nav_menu_items()
wp-includes/nav-menu.php:727
wp_nav_menu()
wp-includes/nav-menu-template.php:151
XTS\M\H\Element->render()
wp-content/themes/woodmart/inc/modules/header-builder/elements/abstract/class-element.php:77
XTS\M\H\Frontend->render_element()
wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php:210
XTS\M\H\Frontend->render_element()
wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php:198
XTS\M\H\Frontend->render_element()
wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php:198
XTS\M\H\Frontend->render_element()
wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php:198
XTS\M\H\Frontend->generate_header()
wp-content/themes/woodmart/inc/modules/header-builder/class-frontend.php:149
whb_generate_header()
wp-content/themes/woodmart/inc/modules/header-builder/functions.php:25
load_template(‘wp-content/themes/woodmart-child/header.php’)
wp-includes/template.php:790
locate_template()
wp-includes/template.php:725
get_header(‘shop’)
wp-includes/general-template.php:48
wc_get_template()
wp-content/plugins/woocommerce/includes/wc-core-functions.php:345This is not happening with another theme.
Looking forward to your reply.
Regards
January 30, 2024 at 10:22 am #534829
Artem TemosKeymasterHello,
This query is related to the menu in the header. Try to temporarily remove all the menus from your header and test how it works.
Kind Regards
January 31, 2024 at 2:42 pm #535487
vodocentar.rsParticipantHi,
When the category mega menu (shown in the attached picture) is deleted and the query is not showing. Maybe the problem is the way the menu is created, so is there another way to create it? The method we used is shown in the picture.Looking forward to your reply.
Regards
Attachments:
You must be logged in to view attached files.January 31, 2024 at 3:13 pm #535514
Artem TemosKeymasterHello,
Instead of a large amount of menu items added directly to the menu, try to create a dropdown using our HTML Blocks. There, you can find our Extra menu list element which looks the same. It will be much better for the performance.
Kind Regards
January 31, 2024 at 3:28 pm #535527
vodocentar.rsParticipantThank you for your fast reply.
Do you have some instructions for creating it that way and may you share the link of it if you do?
Thank you,
Best regards
January 31, 2024 at 6:31 pm #535603
Artem TemosKeymasterYes, please, check our instruction and video here https://xtemos.com/docs-topic/create-mega-menu/
February 5, 2024 at 7:20 pm #536961
vodocentar.rsParticipantHello,
A short update for all users who may find this information helpful.
Creating a mega menu improved my website performance.
As for faster filter performance, enabling CSS combine and JS combine has really sped up the speed of applying filters.
Thank you for all your help,
Best regardsFebruary 6, 2024 at 10:33 am #537116
Artem TemosKeymasterGreat, thank you for sharing your results with others. Feel free to contact us if you have any further questions.
-
AuthorPosts
Tagged: slow filter load
The topic ‘Product filter slow load’ is closed to new replies.
- You must be logged in to create new topics. Login / Register