Forums › Forums › Search & Filter Pro › Search filter Pro plugin is causing a large number of admin ajax requests
- This topic has 7 replies, 2 voices, and was last updated 9 years, 10 months ago by
Ross.
-
Ross Moderator(Private) January 5, 2016 at 2:36 pm #33358
Hi Jarad
I’m actually hosted with WP Engine and use them on a ton of sites…
Sorry in advance for all the questions, please try to answer them all to help me in understanding the issues..
So this issue is specifically in the admin area?
And they say the 500 errors are due to the ajax requests in the admin?
First, the ajax requests are only performed when on S&F pages – so that is any page within the “Search & Filter” admin menu on the left.
So unless you are editing a search form, you likely won’t have these requests going out at all.
Second, the request itself should be very basic.
The request is just checking if the cache needs building – if it is upto date, then its as simple as checking a meta value and returning a true/false via the ajax request. In terms of resources, this shouldn’t really be taking up anything.
However, if you are building the cache, this is more resource intensive, but is only required once, while the cache is being built for the first time.
Can you clarify whether they are referring to any ajax request, or ones tied in with cache being rebuilt?
You can tell if the cache is being built simply by editing any search form, and checking the cache status there.
Just to note, there have been some improvements to this area coming in the next update.
Thanks
Anonymous(Private) January 5, 2016 at 3:12 pm #33360Hi Ross,
Yes, they are saying that the ajax request are causing the 500 errors.
Here is what wp engine provided.
2514 [action] => cache_progress
1840 [action] => process_cache
1241 [action] => refresh_cache
190 [action] => heartbeat
60 [action] => my_embedplus_glance_count
38 [action] => get_focus_keyword_usage
30 [action] => query-attachments
12 [action] => wp-remove-post-lock
8 [action] => save-attachment
8 [action] => sample-permalinkThe top three that all number over 1000 are being created by search-filter-pro
We are currently building cache see below:
Current Progress:
40800 / 72198 posts – 57%
Building cache…Ross Moderator(Private) January 5, 2016 at 3:32 pm #33375Hi Jarad
Ah yes, so the issue is specifically when the cache is being built.
This is pretty resource intensive.
I’ve actually added an option in the next version to change the speed of this.
A lower setting, means the cache takes longer to complete, but should not use as much resources.
Also with the latest update the cache needs to be rebuilt less.
I can send this to you if you want to give it a spin?
The only issue here is that unless you let the cache complete, you will need to rebuild it.
I think the best thing to do (if its possible) is to finish building the cache once.
Don’t make a single change to S&F. Then update it to the dev version I have now.
When you make changes to the search form, there are some pretty resource intensive operations with the current version, and on a site with 70k posts its really going to show.
The dev version has hugely improved this so I would advise to take no further actions until you’ve updated.
Which I think is best only done once cache has finished building, unless its causing too many issues.
Let me know how you want to proceed.
Thanks
Ross Moderator(Private) January 5, 2016 at 5:14 pm #33397Just emailed it to you 🙂
Just to note, actions which will trigger the cache to be rebuilt:
1) Changing post types in any search form
2) adding / removing / changing the post meta key of any post meta fieldsAny other actions in S&F will not trigger a cache rebuild – feel free to do what you need with the other fields.
Thanks
Ross Moderator(Private) January 5, 2016 at 7:51 pm #33414Nope just upload via FTP – replacing the previous version – you shouldn’t have to do anything else, perhaps just hit “update” on your search form.
Thanks
-
AuthorPosts