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