Hello,
this is quite strange because the options of MSLS are loaded when WordPress requests all of those that are set to autoload (this is also true for the dashboard). Please, elaborate a bit and share some more info!
Cheers
Thread Starter
MJ
(@maxwelljacobs)
Hi Dennis,
Thanks for the response!
Yes strange indeed.
Please see screenshot link below showing a total of 4813 queries from ‘WP_User_Query->query()’.
https://prnt.sc/pxame5
Let me know if you need any more information.
Talk soon,
Max
These are not queries but users … do you have 4813 users in your table?
Thread Starter
MJ
(@maxwelljacobs)
Thanks for clarifying Dennis.
Yes you are correct, there are that many users.
I think I mentioned the wrong query. Apologies. It’s shown as ‘Update Meta Cache’ and is being queried 1000’s of times by MSLS. It appears to be updating the meta cache for each user.
Is this meant to happen? It appears to be making the back-end extremely slow…
Here’s another screenshot showing the query for each user.
https://prnt.sc/pxame5
It’s showing 5000+ queries on the page, of which ~4800 are coming from MSLS.
Thanks for your help so far.
-
This reply was modified 5 years, 6 months ago by
MJ.
-
This reply was modified 5 years, 6 months ago by
MJ.
The links seem the same 😉
No this is probably because of the plugin queries the users. I added a filter to the plugin so you can customize the user query. The version is on GitHub:
https://github.com/lloc/Multisite-Language-Switcher
Read on here: http://msls.co/developer-docs/hook-reference.html#msls-get-users
Thread Starter
MJ
(@maxwelljacobs)
Hi Dennis,
Lol sorry! It’s been a long day!
Thanks for the github link and your help.
Keep up the great work!
All the best,
Max