Skip Navigation

[Resolved] Search function has become very slow

This thread is resolved. Here is a description of the problem and solution.

Problem:

The Toolset map and filter functionality on your site has become very slow, making it nearly unusable. Users report that they don't wait long enough for the filter to complete, assuming it's not working.

Solution:

Switch to Page Reload Mode:

- Instead of using AJAX-based filtering, switch to page reload mode. This provides clear feedback to users as they see the page reloading, which helps avoid confusion.
- To do this, go to Toolset > Views, edit your View, and under Search Settings, choose Reload the page when submitting the search.

Optimize Website Performance:

- Check your hosting plan and ensure it meets the resource demands of your site.
- Use a caching plugin such as WP Rocket or LiteSpeed Cache to speed up the initial page load.
- Optimize your database using WP-Optimize to remove unnecessary post revisions, transient options, and spam comments.
- Compress and optimize images with plugins like Smush or Imagify to reduce load time.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by eloiseT 3 weeks, 1 day ago.

Assisted by: Christopher Amirian.

Author
Posts
#2792867

Hello,
I use Toolset to show all my articles on a map and also have a form to filter articles by categories. It is still working but has become very slow when using the filter (almost unusable - some users reported it's not working because they don't wait long enough for the filter to work).

Link to a page where the issue can be seen: hidden link

#2792888

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. Depending on the number of result that you might have it might have a performance consideration which is outside of Toolset scope.

For example searching for a 10000 records and a 100 record will be different for sure.

I suggest first to check if the website can have performance improvements as I see even the first loading of the website is slow.

Please test by having an isolated environment and check if it is as slow or not:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

The other point is the Ajax refresh which takes time and if the customer is not waiting I suggest that switch the search to page reload mode so the customer will not be confused as the page will load and he/she needs to wait.

Thanks.

#2793104

Thank you for suggesting switching from Ajax refresh to search to page reload mode. It has solved the issue as there is no more confusion and the page loads rather quickly with the results.