clear the cache each batch