def clear_cache():
    """
    Restart memcache, wiping the current cache.
    """
    if env.multi_server:
        run('bounce-memcaches-for-cluster')
    else:
        sudo('service memcached restart')

    run('curl -X PURGE -H "Host: %(site_domain)s" http://%(cache_server)s/' % env)
dataset/ETHPy150Open ireapps/census/censusweb/fabfile.py/clear_cache/original