request for way to disable caching of xprofile data for get_all_for_user
To export my extended profile data I run BP_Xprofile_ProfileData::get_all_for_user for each user. Since version 2.0 of Buddypress came out I notice this has gotten much slower. I assume it’s because this data gets cached now. While I see that caching is great for every day use, it would be nice to disable it for specific queries. Could you please add an optional parameter to get_all_for_user to tell it not to cache the data?
I wrote a quick script to do some timings, and on my old development computer if I run get_all_for_user for 5000 users with the old version 1.9.2 it takes 1.7 seconds, while with version 2.0.3 it takes 148.7 seconds, and uses a lot more memory as well (507 MB with the new version versus 41 MB with the old).
- The topic ‘request for way to disable caching of xprofile data for get_all_for_user’ is closed to new replies.