def clear_persistent_graph_cache(request):
 request.facebook = None
 request.session.delete('graph')
 if request.user.is_authenticated():
  profile = get_profile(request.user)
  profile.clear_access_token()

def clear_persistent_graph_cache ( request ) : request . facebook = None request . session . delete ( 'graph' ) if request . user . is_authenticated ( ) : profile = get_profile ( request . user ) profile . clear_access_token ( )
clears the caches for the graph cache .