Support » Plugin: User Role Editor » Can creating upto 300 roles affect my sites

  • Resolved pandglobal

    (@pandglobal)


    I have been using user role editor for a very long time and i understand some things about it, but i have this project that requires creating up to 300 user roles but i want to know if such number of roles will affect my site,i have thought of another way but it seems that i must create the roles up to 300,
    Please help is there some thing wrong with it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulia

    (@shinephp)

    I think that have more than 15-20 roles is not a good idea.

    WordPress user interface is not designed for large quantity of roles. It uses simple drop-down lists for role selection. Will be convenient to select (without searching field) needed role from the list of 300 roles?
    More, Users list page has roles view tabs at the top. WordPress counts quantity of users for every role and create a separate tab for every role for quick filtering users with that role. Imagine 300 tabs at the top of Users page. I suppose it will be opened much slower too.

    Internally WordPress loads to memory (global variable) all roles at once. Every role at this global structure contains all its user capabilities. For example 300 role x 150 user capabilities – array with 45 000 elements. More roles – more memory and computing resources will be needed to contain and process them.

    Roles primary purpose – group user capabilities/permissions, not to separate/sort users for other needs.

    Thanks alot, i appreciate your detailed and useful contribution

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.