remove the index cache when flushing the cache