Cutdown the queries for Xprofile select/Multiselect field
|Reported by:||sbrajesh||Owned by:||sbrajesh|
Currently when we use select/multiselect field, buddypress makes one query per list item on the edit-profile/registration page.
It means, if we have 100 list items in the select field, it will do 100 queries.
here is a patch to fix it. With this patch, the no. of queries will not depend on the number of items in the list.
I have tested it on my current trunk version, please have a look.