Put the cache clear in the right place.