Hi there, I have installed phpredis on my vps server, and I’m using the Redis Object Cache plugin. I have been asking the author of the plug-in, how I know if buddypress can benefit from object caching since I see no effect of the caching. E.g. the member directory is updated, every time a member profile is visited, which means the server is called every time.
Do you know if BuddyPress works with WordPress’ persistent object cache API?
Regards
CarstenHi Carsten,
Thank you for the question.BuddyPress supports persistent object caching. It does not cache complete page, It caches objects fetched for database leading to less computation/query when the object cache is enabled.
Regards
BrajeshHi Brajesh, thanks for the information. As I mentioned, members directory, is loaded every time you reinter the directory after a profile is visited and you are directed back to the top of the directory.
This of course leads to intensive computation and queries to the server, and users have to scroll down again through dusins of members, to where they were.If you instead use Dynamic User Directory by Sarah Giles, the directory does not act this way.
Here the directory is not reloaded, and you are directed back to where you were, after a profile visit.
Unfortunately the plugin is not integrated with BuddyPress Xprofile Custom Field Types and the search toole is limited and does not work with BP Profile Search.This plugin obviously works in another way than BP members directory, where you don’t have to call the database every time you enter the directory.
I wonder why BP members directory is constructed to work this way, apparently this is not object cached, even though the directory should be the most important thing to cache, to reduce server load?
Regards
CarstenHi Carsten,
I haven’t used the Dynamic Directory plugin, so I am not sure of the expectation.Since BuddyPress caches individual objects, there will still be queries for the members list. It won’t query for fetching data of individual members.
It is very different from page caching behaviour. The goal of BuddyPress is to improve performance but not to avoid all the queries completely.
What you are expecting is page caching which is not supported by BuddyPress.Regards
BrajeshHi Brajesh, thanks again for the explanation.
Before the directory did not reload from the top every time a profile has been visited, but it does now.
I don’t know what happened since, but of course this is not very appropriate from a user point of view, to start all over again and to scroll down where you came from.
Is this behavior intentional, og is there something wrong in my set up?
Regards
CarstenHi Brajesh, I think this is key for the user experience with BuddyPrrss, which is why I’m seeking a solution for this issue, and I am hoping that BuddyPress will address this, maybe by changing the structure of BP in future.
Which improvements can we expect in BP ver. 10?
Regards
CarstenHi Carsten,
Thank you for the reply.I hope you mean BP 15? The changes are mostly related to REST api and docs I believe.
Regards
Brajesh
You must be logged in to reply to this topic.