Skip Navigation

[Resolved] Search slows down the site for users, but not admins

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by erinH 6 months, 1 week ago.

Assisted by: Waqar.

Author
Posts
#2695628

Hello,

We are having a weird issue with our site speed when using search and for a minute or two after performing a search. When a users performs a search on our site, the search takes 15-40 seconds to complete. Any page they try to visit after that takes over a minute to load.

This problem doesn't happen for admins, the search and subsequent page loads take <2 seconds for me.

My initial thought is that content protection on our posts is causing Toolset to load slower for users that are affected by them. Admins see all posts, so they don't have the same load time. I can't understand how or why the pages after a search would be slowed by doing a search.

Loom video of the issue: hidden link

Would a users visibility to posts lower the speed of a search? And is there any reason you can think of why other pages would be affected by a search?

Thanks,
Braden

#2695794

Hi Braden,

Thank you for contacting us and I'd be happy to assist.

Your website seems to be using optimization plugins, as well as plugins for security and CDN services. All these plugins can give certain relaxations/by passing to 'administrator' users which would explain the slight difference in page loading.

In your screen recording though the difference in page loading time is fairly long. I used the user-switching plugin to test those pages using the same test user as your screencast but didn't experience the same delay.
(the difference between the loading and searching time for both user types was at a maximum between 15-20 seconds)

Are you noticing this while using any specific browser? Also, did you use the proper login or the user-switching plugin for your tests?

regards,
Waqar

#2695841

Hi Waqar,

I used a test profile I set up to see the differences. I set it as a subscriber in the search in the video, then made it an admin for the second one. This issue was reported from multiple users with different browsers. I use chrome, but safari and firefox also have it happen.

I hadn't thought about other plugins or our CDN impacting user speed, I only knew about content permissions being the difference between admins and users.

I was going through and turning off plugins one-by-one to test, and with Relvanssi turned off the issue is gone. Search results also appear in roughly the same order, which makes me think something is wrong with our install that would be causing this. I'll reach out to the Relevanssi dev and see if he has heard about this before.

Thank you, sorry to be a bother!

Thanks,
Braden