GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
In /cms/cache/permissions.py file
users = User.objects.filter(is_active=True)
users = User.objects.filter(is_active=True,
because is quite common to have few administrators and a lot of registered users.
Otherwise, please could you tell me the reason for this logic?
It's because of the view permissions which can be applied to regular users as well.
I agree that the query might be quite expensive... An alternative would probably be to have a dedicated permissions only cache which you completely clear (=> no db query at all)
You might also want to look at #1423 which is the reason why the query was added.
This should be solved by #1792
Ift it's solved, can it be closed? I found this issue by looking for "easy picking" but seems there's nothing that can be done to help here...
I think we can close it.