Remove usage of user project caching

The caching is done only per process, so the cleanup during logout
does not really work since the during could be handled by another
process. So the cache will just keep on growing.

Change-Id: I793fbee44eb5f9befc316efe6716971b0e32172b
Partial-Bug: #1451943
This commit is contained in:
lin-hua-cheng 2015-11-11 19:40:43 -08:00
parent 0d9feb2ee8
commit 6f83d38da2
2 changed files with 0 additions and 9 deletions

View File

@ -17,8 +17,6 @@ from django.utils.http import urlencode
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from openstack_auth import utils as auth_utils
from horizon import exceptions
from horizon import forms
from horizon import tables
@ -161,7 +159,6 @@ class DeleteTenantsAction(tables.DeleteAction):
def handle(self, table, request, obj_ids):
response = \
super(DeleteTenantsAction, self).handle(table, request, obj_ids)
auth_utils.remove_project_cache(request.user.token.unscoped_token)
return response

View File

@ -21,8 +21,6 @@ from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from openstack_auth import utils as auth_utils
from horizon import exceptions
from horizon import forms
from horizon import messages
@ -484,8 +482,6 @@ class CreateProject(CommonQuotaWorkflow):
'members%(group_msg)s and set project quotas.')
% {'users_to_add': users_to_add,
'group_msg': group_msg})
finally:
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id):
# update project groups
@ -748,8 +744,6 @@ class UpdateProject(CommonQuotaWorkflow):
% {'users_to_modify': users_to_modify,
'group_msg': group_msg})
return False
finally:
auth_utils.remove_project_cache(request.user.token.unscoped_token)
def _update_project_groups(self, request, data, project_id, domain_id):
# update project groups