function for clearing memcache. update to newer dns naming convention. remove redundant path