Knowledge Base

Fixing Ajax Search Pro 4.10.3 WooCommerce slow search bug

in Ajax Search Pro Troubleshooting Tags: bugslowwoocommerce

Due to a minor fault, some WooCommerce installations may experience unusually slow search performance, when using the 4.10.3 plugin release. It is due to the catalog visibility filtering, which was accidentally added to the release before testing.

The fix is luckily very simple, but involves making a change to one of the plugin files:

1. Before you start make sure to have a back-up copy of your site, just in case.
2. Open up the wp-content\plugins\ajax-search-pro\includes\classes\search\class-asp-query.php file on your server
3. Scroll to line 384, which should be this:

if ( class_exists( 'WooCommerce' ) ) {

4. Change that line to this:

if ( class_exists( 'WooCommerce' ) && 0 ) {

5. Save the file, and it is done.

If you need help with this, feel free to open a support ticket, and we will do the change for you.
This issue only affects Ajax Search Pro v 4.10.3.