def flush_cache(roles=['webapp_servers', 'celery_servers']):
    """
    Flushes the cache.
    """
    if _current_host_has_role(roles):
        print("=== FLUSHING CACHE ===")
        with cd(env.REMOTE_CODEBASE_PATH):
            run("workon %s && ./manage.py ft_clear_cache" % env.REMOTE_VIRTUALENV_NAME)
dataset/ETHPy150Open duointeractive/django-fabtastic/fabtastic/fabric/commands/c_common.py/flush_cache/original