better controls around cache clear