ensure the cache is flushed when the whole content changes