Performance optimization
Performances optimizations:
- user groups are now accessible in
cached_groups
of user. User model is changed: new one is available inbase_app.models
- History and PendingModeration are now optimized: we cache the number of versions and if there is something pending moderation in the models. Also, history and pending moderation data must be queried separately.