Remove notices when clearing the cache.

#5173