Join the community today
Become a Member

Wordpress Installing Buddypress

Discussion in 'Blogs & CMS usage' started by ckr3t, Jun 14, 2019.

  1. ckr3t

    ckr3t New Member

    8
    1
    3
    May 26, 2019
    UK
    Ratings:
    +3
    Local Time:
    3:02 AM
    17.0
    MariaDB 10
    Are there any suggestions that would improve performance specific to Buddypress?
    I'm using Beta version of centmin, php7.3
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,095
    9,195
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,105
    Local Time:
    12:02 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    haven't used buddypress myself so hard to comment.

    you having performance issues or just want to optimize stuff ?
     
  3. fabianski

    fabianski Member

    99
    12
    8
    Feb 20, 2019
    Brazil
    Ratings:
    +31
    Local Time:
    11:02 PM
    probably you will have to serve cached pages for unlogged users and the opposite for logged in users ...
    Also use redis to object cache. You may have to add some exclusions to redis because sometimes it stores cached buddypress notifications, it depends on the theme you use.
    You can also disable some bp functions to improve performance, such as something you do not use, the feed, or gravatar.com profile photos and others
     
    • Like Like x 1
  4. ckr3t

    ckr3t New Member

    8
    1
    3
    May 26, 2019
    UK
    Ratings:
    +3
    Local Time:
    3:02 AM
    17.0
    MariaDB 10
    Thanks guys - I'm trying to figure the best configuration for performance before I get too far along, @fabianski - great advice and something I've been looking in to. I am going to do just that since there is a lot of stuff that isn't really required, and I'm mostly concerned the performance is really good for mobile/tablet users.

    I don't think caching is going to be massively helpful, there won't be many static pages, so i guess using Cloudflare is going to cause more problems than it solves? I've been considering benefits of the minifying css, js etc and ngx_pagespeed seems to one of the more useful additions. Image optimiser is a must.

    I love open source, Its great having so many choices and options but its also double edge sword, so I'm going with 'less is more' approach. If anyone else have suggestions, I'm all ears!

    @eva2000 - Thank you for all your work, you have saved so many of us such ball aches!! (y)
     
    • Like Like x 1
  5. ckr3t

    ckr3t New Member

    8
    1
    3
    May 26, 2019
    UK
    Ratings:
    +3
    Local Time:
    3:02 AM
    17.0
    MariaDB 10
    Hi again @fabianski, thank you for your advice, I'm finally ready to start with the minefield of object caching and I have no shame in admitting I'm at a loss as to where to start. I'm looking for any information and tutorials and just thought it worth asking if you might be able to point me in the right direction?

    Redis seems to be the way to go, I installed this during the Centmin option 22. I'm trying not to install too many WP plugins, and not have plugins that overlap in functionality.

    Any pointers, your time permitting, would be greatly appreciated.

    Chris
     
  6. fabianski

    fabianski Member

    99
    12
    8
    Feb 20, 2019
    Brazil
    Ratings:
    +31
    Local Time:
    11:02 PM
    I did not set anything specific in my community regarding the cache, only activated for most pages, when the user is not online, respecting some exclusions, such as the buddypress activity page ...

    Other pages like feed, login, woocommerce cart, checkout, etc., the wprocket itself does not cache with no additional configuration required.

    The redis I only use for object caching, not for page caching ...
    Something that I had to set specific for it was regarding notifications, I had to add the exclusions list to some groups like these:

    Code:
    "usermeta","user_meta","userslugs","bp_last_activity","xprofile_meta","bp_activity","bp_activity_comments","activity_meta","bp_friends_requests","bp_groups","bp_group_invite_count","bp_messages","bp_messages_threads","bp_messages_unread_count","message_meta","bp_notifications","notification_meta"
    In the plugin page the author shows how to do this, the constants used is this: WP_REDIS_IGNORED_GROUPS

    If images will be common in your community then you can optimize them with the eva script, here in the forum you will find with ease how to use it.
    There is also the centminmod optimization guide.
    Anyway, there are many possibilities, you will only know the best for you testing (and sharing with us xD).
     
  7. ckr3t

    ckr3t New Member

    8
    1
    3
    May 26, 2019
    UK
    Ratings:
    +3
    Local Time:
    3:02 AM
    17.0
    MariaDB 10
    That is very helpful so many thanks! I will certainly document and share my method/testing/results here in the forums, its been a good learning experience and I'm having fun with it.

    Eventually, I will take Cloudflare out of dev mode, as you said in your first reply, a dynamic script constantly updating cannot use page cache, at least, not without giving it thought. I'm hoping I can use object cache for the constantly updating stuff and page cache for the blog and elements that remain static.

    I've been reading up on the nginx browser cache too, I believe, with some thought, it should be possible to squeeze as much performance as possible.

    I installed Autoptimize for html, css and js minifying, this gave immediate and positive results for the front end therefore I definitely recommend that!
     
  8. fabianski

    fabianski Member

    99
    12
    8
    Feb 20, 2019
    Brazil
    Ratings:
    +31
    Local Time:
    11:02 PM
    yes, I also use autoptimize with the plugin centminmod/autoptimize-gzip from eva, definitely both do a better minification than wp-rocket, because it delivers the optimized version of the assets to logged in users as well

    btw, the buddypress website has case of study from administrators of large communities, this can be useful as well.
     
    • Like Like x 1