1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 What's the option for the best performance?

Discussion in 'XenForo Questions and Support' started by mauzao9, Aug 5, 2013.

  1. mauzao9

    mauzao9 Well-Known Member

    Heya there.

    I have several groups and group promotions in our site. I am wondering to set the promotions in a new way now, so i ask you a question...

    For users that can get +10 user group promotions, each X group giving extra permissions to the user, shall i let the user have the 10 usergroups with the permissions, or making when they are promoted, they leave the last group they joined, and this next group do have all the last group permissions updated?

    It is hard to explain, but my question is if it is better for performance have a user with many usergroups (with the permissions spread around the groups), or a single usergroup with all the permissions set?

    I'm not sure how Xenforo deals with many usergroups and their permissions, so i'm asking.
    Hope you did understand :rolleyes:
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is no difference. Permission combinations are pre-calculated.
  3. mauzao9

    mauzao9 Well-Known Member

    So no matter what i do, a ton of groups can hurt performance? I'm afraid because we once had mad performance issues.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    More groups = slower cache rebuilding which is a process triggered at save time when managing groups and nodes.
    mauzao9 likes this.
  5. mauzao9

    mauzao9 Well-Known Member

    Oh then it's cache! Everything is pre-defined already, i guess i don't need to worry much about this. :)
  6. Kintaro

    Kintaro Well-Known Member

    is this a problem during promotions cronjob, too? or only editing usergroups and nodes?
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Only when editing groups and nodes. Not during promotions.
    Kintaro likes this.
  8. vbuser

    vbuser Active Member

    Similar question...each time the forum loads does it calculate each user's permissions from each usergroup they belong to? For example a page linking to 10 different .css files.
  9. Mike

    Mike XenForo Developer Staff Member

    The calculation is done only when permissions changed, but the permissions are needed for most page views (CSS is actually an exception).
    vbuser likes this.

Share This Page