PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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

Hello Luuk

Please  drop  me  exact  link to the issue

 

Hello Pablo,

I've added it to the private data.

Regards

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

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

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

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

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;

});

Hello,

This does improve the speed with husky, but not to the same extend as the old text search.

Greetings,
Luuk

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