optional flush of the cache when building it