The size of the roles cache has grown to the point where it is affecting performance and memory usage. Most requests need to fetch the full roles cache which takes time and memory.
This needs to be cached differently, or more efficiently queried.
Reduced memory usage considerably by simplifying the cached data that is stored. This also sped up performance. It is using more db queries, but they are simple, and probably already cached by mysql.
The size of the roles cache has grown to the point where it is affecting performance and memory usage. Most requests need to fetch the full roles cache which takes time and memory.
This needs to be cached differently, or more efficiently queried.