Ajax product search takes far too long
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from DieSite on September 9, 2022, 15:50Hello,
We are using the lastest version of your plugin on our website and we've noticed that it takes a long time to filter products on our category pages. I've narrowed it down to wp-content/plugins/woocommerce-products-filter/index.php:2625. This function takes over 71 seconds to complete! I've used the PHP microtime function to measure this and we also experience this on our live website. The shortcode that is being used here is "[woof taxonomies=product_cat:1188]".
What we are doing is simple navigating to the category page, and then entering a text search. This mostly happens when we are searching a new string.
This action also generates a URL. When we edit this url to make sure we search for a new string again, the load time is only 1,44 seconds so that should be fine, even though it generated the same page. Can you please look into this?
Regards,
Luuk
Hello,
We are using the lastest version of your plugin on our website and we've noticed that it takes a long time to filter products on our category pages. I've narrowed it down to wp-content/plugins/woocommerce-products-filter/index.php:2625. This function takes over 71 seconds to complete! I've used the PHP microtime function to measure this and we also experience this on our live website. The shortcode that is being used here is"[woof taxonomies=product_cat:1188]".
What we are doing is simple navigating to the category page, and then entering a text search. This mostly happens when we are searching a new string.
This action also generates a URL. When we edit this url to make sure we search for a new string again, the load time is only 1,44 seconds so that should be fine, even though it generated the same page. Can you please look into this?
Regards,
Luuk
Quote from Pablo Borysenco on September 12, 2022, 10:31Hello Luuk
Please drop me exact link to the issue
Hello Luuk
Please drop me exact link to the issue
Quote from DieSite on September 12, 2022, 10:34Hello Pablo,
I've added it to the private data.
Regards
Hello Pablo,
I've added it to the private data.
Regards
Quote from Pablo Borysenco on September 12, 2022, 12:07Hello
Please read this - https://products-filter.com/searching-is-slow
Paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png
Hello
Please read this - https://products-filter.com/searching-is-slow
Paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png
Quote from DieSite on September 12, 2022, 12:24Hello Pablo,
Our servers are more than decent so that won't be the problem. We already do everything in the tips you've send and the problem does still persist.
I've added the purchase key.
Greetings,
Luuk
Hello Pablo,
Our servers are more than decent so that won't be the problem. We already do everything in the tips you've send and the problem does still persist.
I've added the purchase key.
Greetings,
Luuk
Quote from Pablo Borysenco on September 13, 2022, 10:49Hello
wp-content/plugins/woocommerce-products-filter/index.php:2625 - This is a request for products in ajax mode. in other words filtering
You can try disable HUSKY and try old text search - https://share.pluginus.net/image/i20220913084908.png and do a test
Hello
wp-content/plugins/woocommerce-products-filter/index.php:2625 - This is a request for products in ajax mode. in other words filtering
You can try disable HUSKY and try old text search - https://share.pluginus.net/image/i20220913084908.png and do a test
Quote from DieSite on September 13, 2022, 11:16Hello,
This improves the performance greatly. Thank you.
It does reduce functionality a bit. It is now not possible to press enter to search the text you've inputted. How can we fix that?
Greetings,
Luuk
Hello,
This improves the performance greatly. Thank you.
It does reduce functionality a bit. It is now not possible to press enter to search the text you've inputted. How can we fix that?
Greetings,
Luuk
Quote from Pablo Borysenco on September 13, 2022, 12:47This improves the performance greatly. - ok! We found the reason. Now let's try the solutions
Please deactivate old search and enable HUSKY. Add this code in functions.php:
add_filter('woof_husky_query_post__in', function($do){
return false;
});
This improves the performance greatly. - ok! We found the reason. Now let's try the solutions
Please deactivate old search and enable HUSKY. Add this code in functions.php:
add_filter('woof_husky_query_post__in', function($do){
return false;
});
Quote from DieSite on September 14, 2022, 13:11Hello,
This does improve the speed with husky, but not to the same extend as the old text search.
Greetings,
Luuk
Hello,
This does improve the speed with husky, but not to the same extend as the old text search.
Greetings,
Luuk
Quote from Pablo Borysenco on September 15, 2022, 10:18Hello
In fact, these are the same queries, the only thing you can do is turn off taxonomy and custom fields search and activate the cache
Hello
In fact, these are the same queries, the only thing you can do is turn off taxonomy and custom fields search and activate the cache